/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
    /* Colors - Midnight with electric cyan & magenta */
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2234;
    --bg-card-hover: #232d42;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-primary: #22d3ee;
    --accent-secondary: #a855f7;
    --accent-tertiary: #f472b6;
    --accent-success: #4ade80;
    --accent-warning: #fbbf24;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-text: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-tertiary) 100%);
    --gradient-glow: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(5rem, 12vw, 10rem);
    --container-max: 1200px;
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   Animated Background
   ======================================== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -200px;
    right: -200px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 30%;
    opacity: 0.15;
    animation-delay: -14s;
}

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

/* ========================================
   Container
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

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

.navbar.scrolled {
    background: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-bracket {
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem 2rem;
    position: relative;
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-greeting {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.name-line {
    display: block;
}

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

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.role-tag {
    padding: 0.4rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-primary);
}

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

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-medium);
}

.btn svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(34, 211, 238, 0.3);
}

.btn-primary:hover svg {
    transform: translate(3px, -3px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-frame {
    position: relative;
    width: 300px;
    height: 360px;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.profile-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.1;
}

.profile-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.initials {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 800;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.frame-decoration {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    z-index: -1;
}

.frame-decoration-2 {
    position: absolute;
    bottom: -15px;
    left: -15px;
    width: 80px;
    height: 80px;
    border: 2px solid var(--accent-secondary);
    border-radius: 16px;
    z-index: -1;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 500;
    animation: badge-float 4s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.badge-icon {
    font-size: 1rem;
}

.badge-1 { top: 5%; right: -5%; animation-delay: 0s; }
.badge-2 { bottom: 25%; left: -10%; animation-delay: -1.5s; }
.badge-3 { bottom: 0%; right: 5%; animation-delay: -3s; }

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-arrow {
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Section Styles
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.section-header.center {
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}

/* ========================================
   About Section
   ======================================== */
.about-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.about-intro {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-body {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-videos {
    grid-column: 1 / -1;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-videos h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.video-card {
    transition: var(--transition-medium);
}

.video-card:hover {
    border-color: rgba(34, 211, 238, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.1);
}

.video-wrapper {
    min-height: 400px;
}

.video-wrapper video {
    height: 400px;
    object-fit: cover;
}

.about-skills h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.skill-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
}

.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(34, 211, 238, 0.2);
    transform: translateY(-2px);
}

.skill-icon {
    font-size: 1.4rem;
}

.skill-card span {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ========================================
   Projects Section
   ======================================== */
.projects-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

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

.project-card:hover {
    border-color: rgba(34, 211, 238, 0.2);
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.project-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.project-tech span {
    padding: 0.3rem 0.7rem;
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent-primary);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

.project-link:hover {
    color: var(--accent-primary);
}

/* Add Project Card */
.project-card.add-project {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.1);
}

.add-project-content {
    text-align: center;
    color: var(--text-muted);
}

.add-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========================================
   Course Work Section
   ======================================== */
.coursework-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
}

.coursework-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.3), transparent);
}

.course-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.course-project-card {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.course-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-medium);
}

.course-project-card:hover {
    border-color: rgba(34, 211, 238, 0.2);
    transform: translateY(-5px);
}

.course-project-card:hover::before {
    opacity: 1;
}

.course-project-card.featured {
    grid-column: span 1;
}

.course-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-number {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-primary);
    padding: 0.4rem 1rem;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 8px;
}

.project-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-status.completed {
    background: rgba(74, 222, 128, 0.1);
    color: var(--accent-success);
}

.project-status.upcoming {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-warning);
}

.course-project-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.course-project-term {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-bottom: 1rem;
}

.course-project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.course-project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.course-project-link svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-fast);
}

.course-project-link:hover {
    gap: 1rem;
}

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto 0;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
    min-width: 140px;
}

.contact-link:hover {
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.contact-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--accent-primary);
}

.contact-link span {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.resume-download {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1) 0%, rgba(34, 211, 238, 0.1) 100%);
    border: 1px solid rgba(168, 85, 247, 0.3);
    position: relative;
    overflow: hidden;
}

.resume-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.2), transparent);
    transition: left 0.5s ease;
}

.resume-download:hover::before {
    left: 100%;
}

.resume-download:hover {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(34, 211, 238, 0.15) 100%);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.2);
}

.resume-icon {
    background: var(--gradient-primary);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.resume-icon svg {
    stroke: var(--bg-primary);
    fill: none;
    width: 24px;
    height: 24px;
}

.resume-download span {
    color: var(--text-primary);
    font-weight: 600;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

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

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

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

/* ========================================
   Animations
   ======================================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text { order: 2; }
    .hero-visual { order: 1; }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .hero-cta,
    .hero-roles {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 1024px) {
    .floating-badge {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: var(--transition-medium);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
        min-height: auto;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    .profile-frame {
        width: 200px;
        height: 260px;
        margin: 0 auto;
    }
    
    .floating-badge {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 1.5rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .contact-link {
        width: 100%;
        max-width: 300px;
        padding: 1rem;
    }
    
    .section {
        padding: 4rem 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-videos {
        margin-top: 2rem;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .video-wrapper {
        min-height: 300px;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(168, 85, 247, 0.3);
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    a {
        -webkit-tap-highlight-color: rgba(168, 85, 247, 0.3);
    }
    
    /* Fix for images not loading - ensure proper display */
    img[src],
    img[srcset] {
        display: block;
        max-width: 100%;
    }
    
    /* Loading state for images */
    img {
        opacity: 1;
        transition: opacity 0.3s;
    }
    
    img[src=""],
    img:not([src]) {
        opacity: 0;
    }
    
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    .gallery-image {
        width: 100% !important;
        height: auto !important;
        min-height: 200px;
        max-height: 400px;
        object-fit: contain !important;
    }
    
    video {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    video source {
        display: none;
    }
    
    /* Ensure images load properly on mobile */
    img[src*="media/"] {
        display: block;
        max-width: 100%;
        height: auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .section-tag {
        font-size: 0.75rem;
        padding: 0.3rem 0.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2rem;
    }
    
    .profile-frame {
        width: 180px;
        height: 240px;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .tab-btn {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
    }
    
    .content-title {
        font-size: 1.2rem;
    }
    
    .gallery-image {
        min-height: 150px;
        max-height: 300px;
    }
}

