* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Custom Fonts */
@font-face {
    font-family: 'Neue Montreal';
    src: url('assets/fonts/NeueMontreal-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Satoshi';
    src: url('assets/fonts/Satoshi-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

:root {
    /* Light mode colors - new color scheme */
    --primary-accent: #667EEA;
    --secondary-accent: #764BA2;
    --bg-color: #FFFFFF;
    --section-bg: #F9FAFB;
    --text-color: #1C1C1C;
    --text-secondary: #222529;
    --border-color: #E5E7EB;
    --card-bg: #F8F8F8;
    --transition: all 0.3s ease;
    
    /* Light mode background gradient */
    --bg-gradient-start: #e0e7ff;
    --bg-gradient-mid: #f3f4f6;
    --bg-gradient-end: #fce7f3;
}

[data-theme="dark"] {
    /* Dark mode colors - new color scheme */
    --primary-accent: #667EEA;
    --secondary-accent: #764BA2;
    --bg-color: #0F0F13;
    --section-bg: #1A1A20;
    --text-color: #EDEDED;
    --text-secondary: #f4f4fa;
    --border-color: #2A2A30;
    --card-bg: #1A1A20;
    
    /* Dark mode background gradient */
    --bg-gradient-start: #0a0e27;
    --bg-gradient-mid: #16213e;
    --bg-gradient-end: #1a1a2e;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-mid) 50%, var(--bg-gradient-end) 100%);
    background-attachment: fixed;
    transition: background 0.5s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Floating characters canvas */
#floating-chars-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure all sections are above the background */
section, nav, footer {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 20px);
    width: 100%;
}

.hero .container {
    max-width: 1400px;
    padding: 0 clamp(15px, 4vw, 40px);
}

/* Theme Toggle Button - Inside Navbar */
.theme-toggle {
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    color: var(--text-secondary);
}

.theme-toggle:hover {
    color: var(--text-color);
    transform: scale(1.15);
}

.theme-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

/* Vertical Navigation Bar */
.vertical-navbar {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    padding: 20px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.vertical-nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 25px;
    align-items: center;
    padding: 0 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-nav-links li {
    width: 100%;
    display: flex;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.vertical-nav-links a svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-nav-links lottie-player {
    width: 24px;
    height: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vertical-nav-links a:hover lottie-player {
    transform: scale(1.15);
}

.vertical-nav-links a:hover {
    color: var(--text-color);
    transform: scale(1.15);
}

/* Logo */
.logo-container {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
}

.logo {
    height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

/* Desktop logos - show by default on desktop */
.logo-desktop {
    display: block;
}

/* Mobile logos - ALWAYS hide on desktop */
.logo-mobile {
    display: none !important;
}

/* Light mode - show light logo (desktop only) */
.logo-desktop.logo-dark {
    display: none;
}

.logo-desktop.logo-light {
    display: block;
}

/* Dark mode - show dark logo (desktop only) */
[data-theme="dark"] .logo-desktop.logo-dark {
    display: block;
}

[data-theme="dark"] .logo-desktop.logo-light {
    display: none;
}

/* Mobile logo */
@media (max-width: 768px) {
    .logo-container {
        top: 20px;
        left: 20px;
    }
    
    .logo {
        height: 40px;
    }
    
    /* Hide desktop logos on mobile */
    .logo-desktop {
        display: none !important;
    }
    
    /* Show mobile logos on mobile */
    .logo-mobile {
        display: block !important;
    }
    
    /* Light mode mobile */
    .logo-mobile.logo-light {
        display: block !important;
    }
    
    .logo-mobile.logo-dark {
        display: none !important;
    }
    
    /* Dark mode mobile */
    [data-theme="dark"] .logo-mobile.logo-dark {
        display: block !important;
    }
    
    [data-theme="dark"] .logo-mobile.logo-light {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    color: var(--text-color);
    overflow: hidden;
    padding-top: 0;
}

.hero .container {
    max-width: 1400px;
    padding: 0 40px;
    width: 100%;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    overflow: visible;
    isolation: isolate;
}

.hero-image {
    width: 100%;
    max-width: 550px;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    z-index: 2;
}

.hero-image:hover {
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
}

/* Abstract Shapes Behind Hero Image */
.abstract-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.shape {
    position: absolute;
    opacity: 0;
    filter: blur(0.5px);
    transform: scale(0.3);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Show shapes on hover - no animations, just static positions */
.hero-image-container:hover .shape {
    opacity: 0.75;
    transform: scale(1);
}

/* Blob 1 - Top right, peeking from behind shoulder */
.shape-blob-1 {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, #7B92FF, #A78BFA);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    top: 8%;
    right: 5%;
    transition-delay: 0.1s;
}

/* Blob 2 - Left side, behind arm/shoulder area */
.shape-blob-2 {
    width: 180px;
    height: 180px;
    background: linear-gradient(225deg, #F472B6, #FB7185);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 25%;
    left: 2%;
    transition-delay: 0.15s;
}

/* Blob 3 - Bottom right, near waist area */
.shape-blob-3 {
    width: 140px;
    height: 140px;
    background: linear-gradient(45deg, #60A5FA, #818CF8);
    border-radius: 50% 50% 30% 70% / 40% 60% 40% 60%;
    bottom: 15%;
    right: 8%;
    transition-delay: 0.2s;
}

/* Blob 4 - Bottom left, partially behind lower body */
.shape-blob-4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(315deg, #C084FC, #E879F9);
    border-radius: 70% 30% 50% 50% / 60% 40% 60% 40%;
    bottom: 20%;
    left: 5%;
    transition-delay: 0.25s;
}

.hero h1 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-color);
}

.highlight {
    background: linear-gradient(135deg, #08A88A 0%, #08A88A 30%, #568cc9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration-color: var(--secondary-accent);
    font-family: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: bold;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 1.5vw + 0.2rem, 1.5rem);
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.4;
    color: var(--text-color);
    min-height: 1.5em;
}

.hero-subtitle::after {
    content: '|';
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: clamp(0.9rem, 1.2vw + 0.25rem, 1.5rem);
    margin-bottom: 1rem;
    opacity: 0.85;
    line-height: 1.6;
    color: var(--text-secondary);
}

.hero-tagline {
    font-size: clamp(0.85rem, 1.1vw + 0.2rem, 1.1rem);
    margin-bottom: 2rem;
    opacity: 0.75;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: clamp(0.75rem, 1vw, 0.9rem) clamp(1.5rem, 2vw, 2rem);
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 0.5em;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, #08A88A, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    font-weight: 600;
    font-size: clamp(0.875rem, 1.1vw, 1rem);
    white-space: nowrap;
    text-align: center;
    min-width: fit-content;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(8, 168, 138, 0.2);
    transition: all 0.2s ease-in;
}

.cta-button svg {
    flex-shrink: 0;
}

.cta-button:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(8, 168, 138, 0.1);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.cta-button:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background: linear-gradient(135deg, #08A88A, #667eea);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.cta-button:hover {
    color: #ffffff;
    border: 1px solid #08A88A;
}

.cta-button:hover:before {
    top: -35%;
    background: linear-gradient(135deg, #08A88A, #667eea);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.cta-button:hover:after {
    top: -45%;
    background: linear-gradient(135deg, #08A88A, #667eea);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.cta-button:active {
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.cta-secondary:hover {
    background: var(--primary-accent);
    color: #FFFFFF;
    border-color: var(--primary-accent);
}

/* Section Styles */
section {
    padding: clamp(3rem, 6vw, 6rem) 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 2.5vw + 0.5rem, 3rem);
    margin-bottom: clamp(2rem, 3vw, 3.5rem);
    color: var(--text-color);
}

/* Skills Section */
.skills {
    background: rgba(var(--section-bg-rgb), 0.6);
    color: var(--text-color);
}

.skills .section-title {
    color: var(--text-color);
}

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

.skill-card {
    background: var(--card-bg);
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 2px solid transparent;
    border-radius: 16px;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, #08A88A, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 0 20px rgba(8, 168, 138, 0.3),
        0 0 40px rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 0 30px rgba(8, 168, 138, 0.5),
        0 0 60px rgba(102, 126, 234, 0.4),
        0 4px 12px rgba(102, 126, 234, 0.3);
}

.skill-card__icon {
    width: 48px;
    height: 48px;
    color: var(--primary-accent);
    stroke-width: 1.5;
    margin-bottom: 1rem;
}

.skill-card__content {
    display: flex;
    flex-direction: column;
}

.skill-card__title {
    color: var(--text-color);
    margin: 0 0 1rem 0;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    font-weight: 700;
}

.skill-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-card__list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-bullet {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    color: var(--primary-accent);
}

.skill-card__list li:last-child {
    border-bottom: none;
}

/* Projects Section - Flip Card Design */
.projects {
    background: transparent;
    color: var(--text-color);
}

.projects .section-title {
    color: var(--text-color);
}

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

/* Flip Card Styles */
.card {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background-color: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, #08A88A, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    box-shadow: 
        0 0 20px rgba(8, 168, 138, 0.3),
        0 0 40px rgba(102, 126, 234, 0.2);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(8, 168, 138, 0.5),
        0 0 60px rgba(102, 126, 234, 0.4),
        0 4px 12px rgba(102, 126, 234, 0.3);
}

.card__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--card-bg);
    transform: rotateX(-90deg);
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    z-index: 3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.card:hover .card__content {
    transform: rotateX(0deg) translateZ(0);
}

.card__title {
    margin: 0 0 10px 0;
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-color);
    font-weight: 700;
}

.card:hover svg {
    scale: 0;
}

.card:hover .card__image {
    opacity: 0;
}

.card__description {
    margin: 0 0 auto 0;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    color: var(--text-secondary);
    line-height: 1.4;
    overflow-y: auto;
    flex: 1;
}

.card__buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.card__button {
    padding: 10px 20px;
    border-radius: 0.5em;
    background: var(--card-bg);
    border: 2px solid transparent;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, #08A88A, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--text-color);
    font-size: clamp(0.75rem, 1.1vw, 0.875rem);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(8, 168, 138, 0.2);
    transition: all 0.2s ease-in;
}

.card__button:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(8, 168, 138, 0.1);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.card__button:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background: linear-gradient(135deg, #08A88A, #667eea);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.card__button:hover {
    color: #ffffff;
    border: 1px solid #08A88A;
}

.card__button:hover:before {
    top: -35%;
    background: linear-gradient(135deg, #08A88A, #667eea);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.card__button:hover:after {
    top: -45%;
    background: linear-gradient(135deg, #08A88A, #667eea);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.card__button:active {
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card__button.secondary {
    background: transparent;
    color: var(--primary-accent);
    border: 1px solid var(--primary-accent);
}

.card__button.secondary:hover {
    background: var(--primary-accent);
    color: white;
}


/* Achievements Section */
.achievements {
    background: rgba(var(--section-bg-rgb), 0.6);
    color: var(--text-color);
}

.achievements .section-title {
    color: var(--text-color);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.achievement-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 3/4;
    background-color: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, #08A88A, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
    box-shadow: 
        0 0 20px rgba(8, 168, 138, 0.3),
        0 0 40px rgba(102, 126, 234, 0.2);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-card:hover {
    transform: scale(1.05);
    box-shadow: 
        0 0 30px rgba(8, 168, 138, 0.5),
        0 0 60px rgba(102, 126, 234, 0.4),
        0 4px 12px rgba(102, 126, 234, 0.3);
}

.achievement-card__icon {
    width: 80px;
    height: 80px;
    color: var(--primary-accent);
    stroke-width: 1.5;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.achievement-card:hover .achievement-card__icon {
    scale: 0;
}

.achievement-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.achievement-card:hover .achievement-card__image {
    opacity: 0;
}

.achievement-card__content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    background-color: var(--card-bg);
    transform: rotateX(-90deg);
    transform-origin: bottom;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 3;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

.achievement-card:hover .achievement-card__content {
    transform: rotateX(0deg) translateZ(0);
}

.achievement-card__title {
    margin: 0 0 10px 0;
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-color);
    font-weight: 700;
}

.achievement-card__description {
    margin: 0;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Contact Section */
.contact {
    background: transparent;
    color: var(--text-color);
}

.contact .section-title {
    color: var(--text-color);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card Animation Styles */
.cardContainer {
    width: clamp(280px, 35vw, 350px);
    height: clamp(350px, 45vw, 450px);
    background-color: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.5s ease;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 16px;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, #08A88A, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 
        0 0 20px rgba(8, 168, 138, 0.3),
        0 0 40px rgba(102, 126, 234, 0.2);
}

.card-lottie-animation {
    position: absolute;
    top: -30px;
    right: -30px;
    z-index: 10;
    pointer-events: none;
}

.profileDiv {
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    transition: all 0.5s ease;
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    border-radius: 14px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.cardContainer:hover .profileDiv {
    transform: translateX(-25%) translateY(-20%);
    transition: all 0.5s ease;
    border-radius: 14px;
}

.infoDiv {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
    background-color: var(--card-bg);
    z-index: 1;
    border-radius: 14px;
}

.nameDiv {
  width: 75%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  padding: 0;
  padding-bottom: 0;
}

.name {
    margin: 0;
    padding: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: var(--text-color);
}

.role {
    margin: 0;
    padding: 0;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.socialDiv {
    width: 25%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    gap: clamp(20px, 4vw, 35px);
    border-radius: 14px;
}

.infoDiv a {
    width: 50%;
    transition: all 0.3s ease;
    border-radius: 14px;
}

.infoDiv a:hover {
    transform: scale(1.1);
    border-radius: 14px;
}

.socials {
    width: 100%;
    fill: var(--text-color);
    transition: all 0.3s ease;
}

.socials:hover {
    fill: var(--primary-accent);
}

.contact-info p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: clamp(0.8rem, 1.5vw, 1rem);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-color);
    width: 100%;
}

.contact-form textarea {
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-accent);
}

.submit-button {
    padding: clamp(0.9rem, 1.5vw, 1rem) clamp(1.5rem, 2vw, 2rem);
    background: var(--card-bg);
    color: var(--text-color);
    border: 2px solid transparent;
    border-radius: 0.5em;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, #08A88A, #667eea, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    font-size: clamp(0.95rem, 1.5vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(8, 168, 138, 0.2);
    transition: all 0.2s ease-in;
}

.submit-button:before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) scaleY(1) scaleX(1.25);
    top: 100%;
    width: 140%;
    height: 180%;
    background-color: rgba(8, 168, 138, 0.1);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.submit-button:after {
    content: "";
    position: absolute;
    left: 55%;
    transform: translateX(-50%) scaleY(1) scaleX(1.45);
    top: 180%;
    width: 160%;
    height: 190%;
    background: linear-gradient(135deg, #08A88A, #667eea);
    border-radius: 50%;
    display: block;
    transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
    z-index: -1;
}

.submit-button:hover {
    color: #ffffff;
    border: 1px solid #08A88A;
}

.submit-button:hover:before {
    top: -35%;
    background: linear-gradient(135deg, #08A88A, #667eea);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.submit-button:hover:after {
    top: -45%;
    background: linear-gradient(135deg, #08A88A, #667eea);
    transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.submit-button:active {
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Neural Network Loader */
#neural-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0a0e1a;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease;
}

#neural-canvas {
    display: block;
}

/* Success Toast Notification */
.success-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 12px;
    background-image: 
        linear-gradient(var(--card-bg), var(--card-bg)),
        linear-gradient(135deg, #08A88A, #667eea);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 
        0 0 20px rgba(8, 168, 138, 0.3),
        0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 9999;
    max-width: 350px;
}

.success-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.success-tick {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.success-tick-circle {
    stroke: #08A88A;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: none;
}

.success-toast.show .success-tick-circle {
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-tick-check {
    stroke: #08A88A;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: none;
}

.success-toast.show .success-tick-check {
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

.success-message {
    margin: 0;
    color: var(--text-color);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-weight: 600;
    line-height: 1.4;
}

/* Footer */
.footer {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer a {
    color: var(--primary-accent);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary-accent);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile: Contact card responsive */
    .cardContainer {
        width: 90%;
        max-width: 320px;
        height: 400px;
        border-radius: 14px;
    }
    
    .nameDiv {
        width: 70%;
        padding-bottom:0;
        
    }
    
    .name {
        margin: 0;
        padding: 0;
        font-weight: 600px  ;
        font-size: clamp(0.95rem, 4vw, 1.2rem);
    }
    
    .role {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
    }
    
    .socialDiv {
        width: 30%;
        gap: 15px;
        border-radius: 14px;
    }
    
    .socials {
        width: 80%;
    }
    
    /* Success toast mobile positioning */
    .success-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: calc(100% - 40px);
        padding: 15px 20px;
    }
    
    .success-tick {
        width: 35px;
        height: 35px;
    }
    
    .success-message {
        font-size: 0.9rem;
    }
    
    /* Mobile: Show content always with image at top for project cards */
    .card {
        aspect-ratio: auto;
        min-height: 400px;
        height: auto;
        flex-direction: column;
    }
    
    .card__image {
        position: relative;
        height: 200px;
        min-height: 200px;
        flex-shrink: 0;
        z-index: 1;
    }
    
    /* Mobile: Show content always with image at top for achievement cards */
    .achievement-card {
        aspect-ratio: auto;
        min-height: 350px;
        height: auto;
        flex-direction: column;
    }
    
    .achievement-card__image {
        position: relative;
        height: 200px;
        min-height: 200px;
        flex-shrink: 0;
        z-index: 1;
    }
    
    .achievement-card__icon {
        display: none;
    }
    
    .achievement-card__content {
        transform: rotateX(0deg);
        position: relative;
        height: auto;
        flex: 1;
        background: var(--card-bg);
        padding: clamp(12px, 3vw, 20px);
    }
    
    .achievement-card:hover {
        transform: scale(1.02);
    }
    
    .achievement-card:hover .achievement-card__image {
        opacity: 1;
    }
    
    .card__content {
        transform: rotateX(0deg);
        position: relative;
        height: auto;
        flex: 1;
        background: var(--card-bg);
        padding: clamp(12px, 3vw, 20px);
    }
    
    .card__title {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-bottom: clamp(8px, 2vw, 12px);
    }
    
    .card__description {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        line-height: 1.5;
        margin-bottom: clamp(12px, 3vw, 15px);
    }
    
    .card__buttons {
        gap: clamp(8px, 2vw, 12px);
        margin-top: auto;
    }
    
    .card__button {
        padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
        font-size: clamp(0.85rem, 2.5vw, 1rem);
    }
    
    .card svg {
        display: none;
    }
    
    .card:hover {
        transform: scale(1.02);
    }
    
    .card:hover .card__image {
        opacity: 1;
    }
    
    /* Move navbar to top on mobile - horizontal pill design with smooth animation */
    .vertical-navbar {
        position: fixed;
        top: clamp(10px, 2vw, 15px);
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(0);
        width: auto;
        max-width: calc(100% - clamp(20px, 4vw, 30px));
        border-radius: 50px;
        border: 2px solid var(--border-color);
        padding: 0 clamp(8px, 2vw, 15px);
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        animation: slideInFromTop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    }
    
    .vertical-nav-links {
        flex-direction: row;
        justify-content: center;
        gap: clamp(8px, 2vw, 15px);
        padding: clamp(8px, 1.5vw, 10px) clamp(3px, 1vw, 5px);
    }
    
    .vertical-nav-links li {
        width: auto;
        display: flex;
        justify-content: center;
        animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    }
    
    .vertical-nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .vertical-nav-links li:nth-child(2) { animation-delay: 0.15s; }
    .vertical-nav-links li:nth-child(3) { animation-delay: 0.2s; }
    .vertical-nav-links li:nth-child(4) { animation-delay: 0.25s; }
    .vertical-nav-links li:nth-child(5) { animation-delay: 0.3s; }
    .vertical-nav-links li:nth-child(6) { animation-delay: 0.35s; }
    
    .vertical-nav-links a {
        width: clamp(32px, 6vw, 36px);
        height: clamp(32px, 6vw, 36px);
    }
    
    .vertical-nav-links lottie-player {
        width: clamp(20px, 4vw, 24px) !important;
        height: clamp(20px, 4vw, 24px) !important;
    }
    
    /* Theme toggle stays inside navbar on mobile */
    .theme-toggle {
        width: clamp(32px, 6vw, 36px);
        height: clamp(32px, 6vw, 36px);
    }
    
    .theme-toggle img {
        width: clamp(20px, 4vw, 24px) !important;
        height: clamp(20px, 4vw, 24px) !important;
    }
    
    /* Add padding to hero to account for fixed navbar */
    .hero {
        padding-top: clamp(80px, 15vw, 100px);
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
        min-height: auto;
        padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4rem) 0;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-tagline {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .cta-button {
        flex: 1;
        min-width: 120px;
        max-width: 150px;
    }
    
    .hero-image {
        order: -1;
        max-width: min(500px, 85vw);
        margin: 0 auto;
    }
    
    .hero-image-container {
        order: -1;
        max-width: min(500px, 85vw);
        margin: 0 auto;
    }
    
    /* Constrain abstract shapes on mobile to prevent overflow */
    /* Scale down abstract shapes on mobile - keep original positions */
    .shape-blob-1 {
        width: 110px;
        height: 110px;
        top: 8%;
        right: 5%;
    }
    
    .shape-blob-2 {
        width: 120px;
        height: 120px;
        top: 25%;
        left: 2%;
    }
    
    .shape-blob-3 {
        width: 95px;
        height: 95px;
        bottom: 15%;
        right: 8%;
    }
    
    .shape-blob-4 {
        width: 100px;
        height: 100px;
        bottom: 20%;
        left: 5%;
    }
    
    .skills-grid,
    .projects-grid,
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: clamp(1.5rem, 3vw, 2rem);
    }
}

/* Tablet landscape and medium screens */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Navbar stays on right side for tablet */
    .vertical-navbar {
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        padding: 2rem 0;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-image-container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

/* Large screens and 4K displays */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }
    
    .hero .container {
        max-width: 1800px;
    }
    
    .hero-wrapper {
        gap: clamp(4rem, 5vw, 8rem);
    }
    
    .hero-image {
        max-width: 650px;
    }
    
    .hero-image-container {
        max-width: 650px;
    }
    
    .skills-grid,
    .projects-grid,
    .achievements-grid {
        gap: clamp(2rem, 2.5vw, 3rem);
    }
}

/* Ultra-wide and 4K+ displays */
@media (min-width: 2560px) {
    html {
        font-size: 18px;
    }
    
    .container {
        max-width: 2000px;
    }
    
    .hero .container {
        max-width: 2200px;
    }
    
    .hero-image {
        max-width: 750px;
    }
    
    .hero-image-container {
        max-width: 750px;
    }
}

/* Desktop animation - slide in from right */
@media (min-width: 1025px) {
    .vertical-navbar {
        animation: slideInFromRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .vertical-nav-links li {
        animation: fadeInScale 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
    }
    
    .vertical-nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .vertical-nav-links li:nth-child(2) { animation-delay: 0.15s; }
    .vertical-nav-links li:nth-child(3) { animation-delay: 0.2s; }
    .vertical-nav-links li:nth-child(4) { animation-delay: 0.25s; }
    .vertical-nav-links li:nth-child(5) { animation-delay: 0.3s; }
    .vertical-nav-links li:nth-child(6) { animation-delay: 0.35s; }
}

/* Keyframe Animations */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* Ensure all cards have consistent rounded corners */
.skill-card,
.project-card,
.achievement-card {
    border-radius: 12px;
}
.glow-container {
    border-radius: 12px;
}

.glow-effect {
    border-radius: 12px;
}
