/* ===== CSS Variables & Base Styles ===== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    
    --bg-dark: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #06b6d4 100%);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-3: linear-gradient(135deg, #ec4899 0%, #f43f5e 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Animated Background ===== */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(-50px, -30px) scale(1.05); }
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    text-decoration: none;
}

.logo-text {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-normal);
}


/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 24px 60px;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-greeting {
    font-size: 1.2rem;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 2.5rem;
}

.typewriter {
    border-right: 3px solid var(--primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition-normal);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-2);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Code Window */
.hero-visual {
    perspective: 1000px;
}

.code-window {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: var(--transition-slow);
}

.code-window:hover {
    transform: rotateY(0) rotateX(0);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.window-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.window-title {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.window-content {
    padding: 24px;
}

.window-content pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-keyword { color: #c792ea; }
.code-variable { color: #82aaff; }
.code-property { color: #f78c6c; }
.code-string { color: #c3e88d; }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scroll {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 20px; }
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(50px);
    animation: fadeLeft 0.8s forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeLeft {
    to { opacity: 1; transform: translateX(0); }
}


/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 30px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
}

/* ===== About Section ===== */
.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 120px;
}

.image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.image-border {
    position: absolute;
    inset: -10px;
    border: 3px solid transparent;
    border-radius: var(--border-radius-lg);
    background: var(--gradient-1) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.about-intro strong {
    color: var(--text-primary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.highlight-card {
    background: var(--bg-card);
    padding: 24px;
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
}

.highlight-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
}

.highlight-card i {
    font-size: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.highlight-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.highlight-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-status {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-card);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.philosophy {
    position: relative;
    padding: 24px 24px 24px 48px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary);
}

.philosophy i {
    position: absolute;
    left: 16px;
    top: 20px;
    color: var(--primary);
    opacity: 0.5;
}

.philosophy p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.philosophy cite {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== Skills Section ===== */
.skills {
    background: linear-gradient(180deg, transparent 0%, rgba(99, 102, 241, 0.03) 50%, transparent 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.skill-category {
    background: var(--bg-card);
    padding: 32px;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-normal);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.skill-category h3 i {
    color: var(--primary);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    transition: var(--transition-normal);
    cursor: default;
}

.skill-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.skill-item i {
    font-size: 1.4rem;
    color: var(--primary-light);
}

.skill-item span {
    font-weight: 500;
    color: var(--text-secondary);
}


/* ===== Projects Section ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.3);
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--bg-card-hover) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-card.featured .project-image {
    aspect-ratio: auto;
    min-height: 350px;
}

.project-icon {
    font-size: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition-normal);
    z-index: 1;
}

.project-card.featured .project-icon {
    font-size: 6rem;
}

.project-card:hover .project-icon {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9) 0%, rgba(236, 72, 153, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
    backdrop-filter: blur(5px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-icon {
    opacity: 0;
}

.project-links {
    display: flex;
    gap: 20px;
}

.project-link {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: white;
    font-size: 1.4rem;
    transition: var(--transition-normal);
    transform: translateY(30px);
    opacity: 0;
}

.project-card:hover .project-link {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-link:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:hover .project-link:nth-child(2) {
    transition-delay: 0.2s;
}

.project-link:hover {
    background: white;
    color: var(--primary);
    transform: scale(1.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-content {
    padding: 28px;
}

.project-card.featured .project-content {
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Project Features List for Featured Card */
.project-features {
    list-style: none;
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.project-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-features li i {
    color: var(--success);
    font-size: 0.8rem;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    color: var(--primary-light);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.projects-cta {
    text-align: center;
}

/* ===== Contact Section ===== */
.contact {
    background: linear-gradient(180deg, transparent 0%, rgba(236, 72, 153, 0.03) 50%, transparent 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.contact-details {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.7;
}

.contact-availability {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 30px;
    margin-bottom: 32px;
    color: var(--success);
    font-weight: 500;
    font-size: 0.95rem;
}

.availability-dot {
    width: 10px;
    height: 10px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.contact-method:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    transform: translateX(10px);
}

.contact-method i {
    font-size: 1.4rem;
    color: var(--primary);
}

.contact-social {
    display: flex;
    gap: 16px;
}

.social-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: var(--transition-normal);
}

.social-btn:hover {
    background: var(--gradient-1);
    color: white;
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-normal);
}

.form-group textarea ~ label {
    top: 20px;
    transform: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.8rem;
    padding: 0 8px;
    background: var(--bg-card);
    color: var(--primary);
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.footer-text .heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.footer-quote {
    color: var(--text-muted);
    font-size: 0.9rem;
}


/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        margin: 0 auto 32px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-social {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        position: static;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .project-card.featured .project-image {
        min-height: 200px;
    }
    
    .project-features {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Base Mobile Styles */
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 70px 0;
    }
    
    /* Mobile Navigation - Premium Look */
    .navbar {
        padding: 16px 0;
        background: rgba(15, 15, 26, 0.95);
        backdrop-filter: blur(20px);
    }
    
    .navbar.scrolled {
        padding: 12px 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(15, 15, 26, 0.98) 0%, rgba(26, 26, 46, 0.98) 100%);
        backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
        opacity: 0.8;
    }
    
    .nav-link:hover {
        opacity: 1;
    }
    
    .hamburger {
        display: flex;
        z-index: 1001;
        padding: 8px;
    }
    
    .hamburger span {
        width: 28px;
        height: 3px;
        border-radius: 2px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Section - Mobile Premium */
    .hero {
        padding: 120px 20px 60px;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        width: 100%;
    }
    
    .hero-greeting {
        font-size: 1rem;
        margin-bottom: 16px;
        letter-spacing: 1px;
    }
    
    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 16px;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 20px;
        min-height: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 32px;
        opacity: 0.9;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 36px;
    }
    
    .btn {
        width: 100%;
        padding: 16px 28px;
        font-size: 1rem;
        border-radius: 14px;
        justify-content: center;
    }
    
    .btn-primary {
        box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
    }
    
    .hero-social {
        gap: 14px;
    }
    
    .social-link {
        width: 52px;
        height: 52px;
        font-size: 1.3rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Section Headers - Mobile */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-tag {
        padding: 8px 18px;
        font-size: 0.85rem;
        margin-bottom: 14px;
    }
    
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    /* About Section - Mobile Premium */
    .about-image {
        max-width: 220px;
        margin-bottom: 10px;
    }
    
    .image-wrapper {
        border-radius: 24px;
    }
    
    .profile-img {
        border-radius: 24px;
    }
    
    .about-intro {
        font-size: 1.05rem;
        text-align: center;
        line-height: 1.7;
        margin-bottom: 28px;
    }
    
    .about-highlights {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        margin-bottom: 28px;
    }
    
    .highlight-card {
        padding: 20px 16px;
        text-align: center;
        border-radius: 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .highlight-card i {
        font-size: 1.6rem;
        margin-bottom: 10px;
        display: block;
    }
    
    .highlight-card h4 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .highlight-card p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .about-status {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 28px;
    }
    
    .status-item {
        padding: 10px 16px;
        font-size: 0.85rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .philosophy {
        padding: 20px;
        padding-left: 20px;
        border-left: 3px solid var(--primary);
        border-radius: 12px;
    }
    
    .philosophy i {
        display: none;
    }
    
    .philosophy p {
        font-size: 1rem;
        text-align: center;
    }
    
    .philosophy cite {
        display: block;
        text-align: center;
        margin-top: 8px;
    }
    
    /* Skills Section - Mobile Premium */
    .skill-category {
        padding: 24px 20px;
        border-radius: 18px;
        margin-bottom: 16px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .skill-category:last-child {
        margin-bottom: 0;
    }
    
    .skill-category h3 {
        font-size: 1.1rem;
        margin-bottom: 18px;
        justify-content: center;
    }
    
    .skill-items {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .skill-item {
        padding: 12px 14px;
        border-radius: 10px;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .skill-item i {
        font-size: 1.1rem;
    }
    
    .skill-item span {
        font-size: 0.85rem;
    }
    
    /* Projects Section - Mobile Premium */
    .projects-grid {
        gap: 20px;
        margin-bottom: 36px;
    }
    
    .project-card {
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        overflow: hidden;
    }
    
    .project-card.featured .project-image {
        min-height: 200px;
    }
    
    .project-card.featured .project-icon {
        font-size: 4.5rem;
    }
    
    .project-card.featured .project-content {
        padding: 24px 20px;
    }
    
    .project-image {
        aspect-ratio: 16/9;
        cursor: pointer;
    }
    
    .project-icon {
        font-size: 3.5rem;
    }
    
    /* Mobile: Hide overlay by default, show on tap */
    .project-overlay {
        opacity: 0;
    }
    
    .project-card:active .project-overlay,
    .project-card:focus-within .project-overlay {
        opacity: 1;
    }
    
    .project-card:active .project-icon,
    .project-card:focus-within .project-icon {
        opacity: 0;
    }
    
    .project-card:active .project-link,
    .project-card:focus-within .project-link {
        transform: translateY(0);
        opacity: 1;
    }
    
    .project-link {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
    }
    
    .project-content {
        padding: 22px 18px;
    }
    
    .project-tag {
        font-size: 0.75rem;
        padding: 5px 12px;
        margin-bottom: 10px;
    }
    
    .project-content h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }
    
    .project-content p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    .project-tech {
        gap: 8px;
    }
    
    .project-tech span {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: 8px;
    }
    
    .project-features {
        margin-top: 16px;
        gap: 10px;
    }
    
    .project-features li {
        font-size: 0.85rem;
    }
    
    .projects-cta .btn {
        max-width: 100%;
    }
    
    /* Contact Section - Mobile Premium */
    .contact-intro {
        font-size: 1.05rem;
        text-align: center;
        line-height: 1.7;
    }
    
    .contact-details {
        font-size: 0.95rem;
        text-align: center;
        line-height: 1.7;
    }
    
    .contact-availability {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.9rem;
        border-radius: 14px;
    }
    
    .contact-methods {
        gap: 12px;
        margin-bottom: 28px;
    }
    
    .contact-method {
        padding: 16px 18px;
        border-radius: 14px;
        font-size: 0.95rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .contact-method i {
        font-size: 1.2rem;
    }
    
    .contact-social {
        justify-content: center;
        gap: 14px;
    }
    
    .social-btn {
        width: 52px;
        height: 52px;
        font-size: 1.2rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .contact-form {
        padding: 28px 22px;
        border-radius: 18px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 16px;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .form-group label {
        font-size: 0.95rem;
    }
    
    /* Footer - Mobile */
    .footer {
        padding: 36px 0;
    }
    
    .footer-logo {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .footer-text {
        font-size: 0.9rem;
    }
    
    .footer-quote {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 110px 16px 50px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.7rem;
    }
    
    .about-image {
        max-width: 180px;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .highlight-card {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 16px;
        padding: 18px;
    }
    
    .highlight-card i {
        margin-bottom: 0;
        font-size: 1.4rem;
    }
    
    .highlight-card-text {
        flex: 1;
    }
    
    .skill-items {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured .project-image {
        min-height: 160px;
    }
    
    .project-card.featured .project-icon {
        font-size: 3.5rem;
    }
    
    .project-icon {
        font-size: 3rem;
    }
    
    .project-link {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 22px 18px;
    }
}

/* ===== Touch Device Optimizations ===== */
@media (hover: none) and (pointer: coarse) {
    .project-card:hover {
        transform: none;
    }
    
    .project-card:active {
        transform: scale(0.98);
    }
    
    .highlight-card:hover,
    .skill-category:hover,
    .skill-item:hover {
        transform: none;
    }
    
    .contact-method:hover {
        transform: none;
    }
    
    .social-link:hover,
    .social-btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
}

/* ===== Scroll Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== Selection ===== */
::selection {
    background: var(--primary);
    color: white;
}
