/* Global Styles */
:root {
    --primary-color: #00d084;
    --primary-color-hover: #00b873;
    --secondary-color: #6366f1;
    --text-color: #1e293b;
    --text-color-light: #64748b;
    --text-color-muted: #94a3b8;
    --dark-bg: rgba(255, 255, 255, 0.95);
    --card-bg: rgba(255, 255, 255, 0.9);
    --light-bg: #f8fafc;
    --border-color: rgba(0, 208, 132, 0.15);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #f8fafc;
    position: relative;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 208, 132, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 208, 132, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(8px, 2vw, 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Sidebar Navigation */
.sidebar-nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    background: rgba(248, 250, 252, 0);
    backdrop-filter: blur(20px);
    padding: 20px 15px;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-logo {
    margin-bottom: 15px;
    padding-bottom: 15px;
    cursor: pointer;
    margin-left: 4px;
    width: calc(100% - 4px);
    max-width: 170px;
    overflow: hidden;
}

.sidebar-logo #logo {
    display: block;
    width: 100%;
}

.sidebar-logo .logo-container {
    display: inline-block;
    position: relative;
    padding: 10px;
    margin: -10px;
    pointer-events: auto;
    max-width: 100%;
    overflow: hidden;
}

.sidebar-logo #logoText {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 1px;
    margin-bottom: 3px;
    display: inline-block;
}

.sidebar-logo .logo-dot {
    color: var(--primary-color);
    display: inline-block;
    font-size: 24px;
    font-weight: 600;
}

.sidebar-logo #logoText span {
    display: inline-block;
    animation: none;
}

.sidebar-logo #logo.bouncing #logoText span {
    animation: waveBounce 1s ease-in-out infinite;
}

.sidebar-logo #logo.shaking #logoText span {
    animation: sway 0.3s ease-in-out infinite;
    transform-origin: center bottom;
}

.sidebar-logo #logo.shaking .logo-dot {
    animation: sway 0.3s ease-in-out infinite;
    transform-origin: center bottom;
}

.sidebar-logo #logo.bouncing #logoText span:nth-child(1) { animation-delay: 0s; }
.sidebar-logo #logo.bouncing #logoText span:nth-child(2) { animation-delay: 0.1s; }
.sidebar-logo #logo.bouncing #logoText span:nth-child(3) { animation-delay: 0.2s; }
.sidebar-logo #logo.bouncing #logoText span:nth-child(4) { animation-delay: 0.3s; }
.sidebar-logo #logo.bouncing #logoText span:nth-child(5) { animation-delay: 0.4s; }
.sidebar-logo #logo.bouncing #logoText span:nth-child(6) { animation-delay: 0.5s; }
.sidebar-logo #logo.bouncing #logoText span:nth-child(7) { animation-delay: 0.6s; }
.sidebar-logo #logo.bouncing #logoText span:nth-child(8) { animation-delay: 0.7s; }

.sidebar-logo #logo.bouncing .logo-dot {
    animation: waveBounce 1s ease-in-out infinite;
    animation-delay: 0.8s;
}

.hamburger-menu {
    display: none;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin-bottom: 6px;
}

.nav-menu a {
    display: block;
    padding: 8px 12px;
    padding-left: 24px;
    color: var(--text-color-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
}

.nav-menu a span {
    display: inline-block;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background: var(--text-color-light);
    z-index: 2;
    pointer-events: none;
    transition: background 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-color);
    background: rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.nav-menu a:hover::before {
    background: var(--text-color);
    width: 8px;
    height: 8px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 24px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.4s ease;
}

.nav-menu a:hover::after {
    width: calc(100% - 24px);
}

.nav-menu a.active {
    color: var(--primary-color);
    position: relative;
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0, 208, 132, 0.1);
    z-index: -1;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.nav-menu a.active.hiding::after {
    width: 24px;
}

.nav-menu a.active::before {
    background: var(--primary-color);
    width: 8px;
    height: 8px;
}

.main-content-wrapper {
    margin-left: 200px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* Hide old navbar */
.navbar {
    display: none;
}

.logo {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 700;
    color: var(--primary-color);
    margin-left: clamp(16px, 4vw, 32px);
    justify-self: start;
    letter-spacing: -0.5px;
    cursor: pointer;
    position: relative;
    display: inline-block;
}

.logo-container {
    display: inline-block;
    position: relative;
    padding: 10px;
    margin: -10px;
    pointer-events: auto;
}

.logo-text {
    color: var(--text-color);
    display: inline-block;
}

.logo-text span {
    display: inline-block;
    animation: none;
}

.logo.bouncing .logo-text span {
    animation: waveBounce 1s ease-in-out infinite;
}

.logo.bouncing .logo-text span:nth-child(1) { animation-delay: 0s; }
.logo.bouncing .logo-text span:nth-child(2) { animation-delay: 0.1s; }
.logo.bouncing .logo-text span:nth-child(3) { animation-delay: 0.2s; }
.logo.bouncing .logo-text span:nth-child(4) { animation-delay: 0.3s; }
.logo.bouncing .logo-text span:nth-child(5) { animation-delay: 0.4s; }
.logo.bouncing .logo-text span:nth-child(6) { animation-delay: 0.5s; }
.logo.bouncing .logo-text span:nth-child(7) { animation-delay: 0.6s; }
.logo.bouncing .logo-text span:nth-child(8) { animation-delay: 0.7s; }

.logo.bouncing .logo-dot {
    animation: waveBounce 1s ease-in-out infinite;
    animation-delay: 0.8s;
}

@keyframes waveBounce {
    0%, 100% {
        transform: translateY(0);
    }
    25% {
        transform: translateY(-15px);
    }
    50% {
        transform: translateY(0);
    }
    75% {
        transform: translateY(-8px);
    }
}

@keyframes sway {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-8px) rotate(-3deg); }
    50% { transform: translateX(0) rotate(0deg); }
    75% { transform: translateX(8px) rotate(3deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

.logo.shaking .logo-text span,
.logo.shaking .logo-dot,
.sidebar-logo #logo.shaking #logoText span,
.sidebar-logo #logo.shaking .logo-dot {
    animation: sway 0.3s ease-in-out infinite;
    transform-origin: center bottom;
}

.particle {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
}

.particle.circle {
    border-radius: 50%;
    background: #000;
}

.particle.box {
    background: #000;
}

.particle.triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 8px solid #000;
}

.logo.spinning-box-center {
    position: relative;
}

.logo.spinning-box-center::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    background: #000;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: spinBoxContinuous 1s linear infinite;
    z-index: 1;
}

@keyframes spinBoxContinuous {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.logo.sliding .logo-text span {
    position: relative;
    animation: slideFromRight 0.4s ease-out forwards;
    opacity: 0;
}

.logo.sliding .logo-text span:nth-child(1) { animation-delay: 0s; }
.logo.sliding .logo-text span:nth-child(2) { animation-delay: 0.1s; }
.logo.sliding .logo-text span:nth-child(3) { animation-delay: 0.2s; }
.logo.sliding .logo-text span:nth-child(4) { animation-delay: 0.3s; }
.logo.sliding .logo-text span:nth-child(5) { animation-delay: 0.4s; }
.logo.sliding .logo-text span:nth-child(6) { animation-delay: 0.5s; }
.logo.sliding .logo-text span:nth-child(7) { animation-delay: 0.6s; }
.logo.sliding .logo-text span:nth-child(8) { animation-delay: 0.7s; }

.logo.sliding .logo-dot {
    animation: slideFromRight 0.4s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes slideFromRight {
    0% {
        transform: translateX(200px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.logo.exploding .logo-text span,
.logo.exploding .logo-dot {
    animation: none;
    transform: translate(var(--explode-x, 0), var(--explode-y, 0)) scale(0);
    opacity: 0;
    transition: all 0.5s ease-out;
}

.logo.recompressing {
    position: relative;
}

.logo.recompressing .logo-text span,
.logo.recompressing .logo-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    animation: recompress 0.8s ease-in-out forwards;
}

@keyframes recompress {
    0% {
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
        opacity: 1;
    }
}

.logo.spinning-box {
    position: relative;
}

.logo.spinning-box::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 60px;
    background: #000;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: spinBox 2s linear infinite;
    z-index: 1;
}

@keyframes spinBox {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.logo.forming .logo-text span {
    position: relative;
    animation: formFromLeft 0.3s ease-out forwards;
    opacity: 0;
}

.logo.forming .logo-text span:nth-child(1) { animation-delay: 0s; }
.logo.forming .logo-text span:nth-child(2) { animation-delay: 0.1s; }
.logo.forming .logo-text span:nth-child(3) { animation-delay: 0.2s; }
.logo.forming .logo-text span:nth-child(4) { animation-delay: 0.3s; }
.logo.forming .logo-text span:nth-child(5) { animation-delay: 0.4s; }
.logo.forming .logo-text span:nth-child(6) { animation-delay: 0.5s; }
.logo.forming .logo-text span:nth-child(7) { animation-delay: 0.6s; }
.logo.forming .logo-text span:nth-child(8) { animation-delay: 0.7s; }

.logo.forming .logo-dot {
    animation: formFromLeft 0.3s ease-out forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes formFromLeft {
    0% {
        transform: translateX(-100px) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

.logo-dot {
    color: var(--primary-color);
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px clamp(12px, 2vw, 20px);
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: clamp(14px, 1.5vw, 16px);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-color);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.resume-btn {
    background: var(--primary-color);
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 24px !important;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 208, 132, 0.25);
}

.resume-btn:hover {
    background: var(--primary-color-hover);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.35);
}

.resume-btn::after {
    display: none;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    justify-self: end;
    margin-right: 20px;
}

/* Common Styles for both pages */
.left-section {
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: clamp(280px, 30vw, 400px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Index Page Styles */
.hero-content-index {
    display: grid;
    grid-template-columns: 1fr 1fr;
        gap: clamp(20px, 3vw, 40px);
    align-items: center;
    min-height: calc(100vh - 80px);
    padding-top: clamp(20px, 3vw, 30px);
    padding-bottom: clamp(20px, 3vw, 30px);
}

@media (max-width: 968px) {
    .hero-content-index {
        grid-template-columns: 1fr;
        gap: clamp(16px, 2.5vw, 24px);
        text-align: center;
    }
    
    .hero-content-index .left-section {
        order: 2;
    }
    
    .hero-content-index .right-section {
        order: 1;
    }
}

.hero-content-index .left-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* About Page Styles */
#about .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-about {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    align-items: start;
    padding-top: 50px;
    margin: 0 auto;
}

.hero-content-about .left-section {
    position: sticky;
    top: 100px;
}

/* Typing Animation */
.hero-content-index .typing-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
}

.hero-content-about .typing-container {
    position: absolute;
    bottom: -30px;
    left: 110px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.typing-text {
    font-size: 2rem;
    color: var(--text-color);
    line-height: 2rem;
    white-space: nowrap;
}

.typing-words {
    position: relative;
    min-width: 200px;
    height: 2rem;
    line-height: 2rem;
    display: inline-block;
}

.typing-words span {
    position: absolute;
    left: 0;
    top: 0;
    font-size: 2rem;
    line-height: 2rem;
    color: var(--primary-color);
    opacity: 0;
    animation: typing 8s linear infinite;
    white-space: nowrap;
}

.typing-words span:nth-child(1) { animation-delay: 0s; }
.typing-words span:nth-child(2) { animation-delay: 2s; }
.typing-words span:nth-child(3) { animation-delay: 4s; }
.typing-words span:nth-child(4) { animation-delay: 6s; }

@keyframes typing {
    0%, 20% {
        opacity: 1;
        transform: translateY(0);
    }
    25%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

#about .right-section {
    padding-top: 0;
}

.right-section h1 {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.15;
    margin-bottom: clamp(10px, 1.5vw, 16px);
    font-weight: 700;
    letter-spacing: -1px;
}

.right-section h1 .highlight {
    display: block;
    color: var(--primary-color);
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: 700;
}

.right-section p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.75;
    margin-bottom: clamp(8px, 1vw, 12px);
    color: var(--text-color-light);
    max-width: 600px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: clamp(16px, 3vw, 24px);
    margin-top: clamp(16px, 2.5vw, 24px);
    flex-wrap: wrap;
}

.btn {
    padding: clamp(6px, 1vw, 8px) clamp(12px, 2vw, 16px);
    border-radius: 10px;
    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-align: center;
    letter-spacing: 0.3px;
}

.primary-btn {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 208, 132, 0.3);
}

.primary-btn:hover {
    background: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}

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

.secondary-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 208, 132, 0.3);
}

@media (max-width: 768px) {
    /* Home page vertical layout for mobile */
    .hero-content-index {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-top: clamp(15px, 2.5vw, 25px);
        gap: clamp(12px, 2vw, 16px);
        min-height: auto;
    }

    .hero-content-index .right-section {
        order: 1;
        width: 100%;
        padding-right: 0;
        display: contents;
    }

    .hero-content-index .right-section h1 {
        order: 1;
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: clamp(8px, 1.5vw, 12px);
        width: 100%;
    }

    .hero-content-index .left-section {
        order: 2;
        width: 100%;
        display: contents;
    }

    .hero-content-index .left-section .hero-image {
        order: 2;
        max-width: 280px;
        margin: 0 auto 10px;
    }

    .hero-content-index .left-section .typing-container {
        order: 3;
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
    }

    .hero-content-index .right-section p {
        order: 4;
        font-size: clamp(15px, 3vw, 17px);
        width: 100%;
        padding: 0 clamp(16px, 4vw, 0);
    }

    .hero-content-index .cta-buttons {
        order: 5;
        flex-direction: column;
        align-items: stretch;
        gap: clamp(12px, 2vw, 16px);
        margin-top: clamp(8px, 1.5vw, 12px);
        width: 100%;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-content-index .cta-buttons .btn {
        width: 100%;
        padding: clamp(14px, 3vw, 16px) clamp(24px, 5vw, 32px);
        font-size: clamp(14px, 2vw, 16px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 15px;
    }

    .left-section {
        margin-top: 0;
    }

    .right-section {
        padding-right: 0;
    }

    .right-section h1 {
        font-size: 3rem;
    }

    .hero-content-about .typing-container {
        position: static;
        justify-content: center;
        margin-top: 20px;
    }
}

/* Quick Links Section */
#quick-links {
    width: 100%;
    padding: clamp(10px, 2vw, 20px) 0 clamp(15px, 2.5vw, 30px);
}

.quick-links-grid {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 28px);
    padding: 0 clamp(16px, 4vw, 0);
}

.quick-link-card {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 24px);
    background: rgba(255, 255, 255, 0.98);
    padding: clamp(20px, 4vw, 32px) clamp(24px, 4vw, 36px);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-color);
    text-align: left;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-link-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 1);
}

.quick-link-card i {
    width: clamp(48px, 6vw, 64px);
    height: clamp(48px, 6vw, 64px);
    border-radius: 14px;
    background: rgba(0, 208, 132, 0.1);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    margin: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.quick-link-card:hover i {
    background: rgba(0, 208, 132, 0.15);
    transform: scale(1.05);
}

.quick-link-card h3 {
    margin-bottom: 8px;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: var(--text-color);
}

.quick-link-card p {
    margin: 0;
    color: var(--text-color-light);
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.6;
}

@media (min-width: 640px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .quick-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(24px, 4vw, 32px);
    }
}

@media (max-width: 640px) {
    .quick-links-grid {
        grid-template-columns: 1fr;
        gap: clamp(16px, 3vw, 24px);
    }
    
    .quick-link-card {
        flex-direction: row;
        text-align: left;
        padding: clamp(20px, 4vw, 28px);
    }
}

@media (max-width: 480px) {
    .quick-link-card {
        flex-direction: column;
        text-align: center;
        padding: clamp(20px, 4vw, 24px);
    }

    .quick-link-card i {
        margin-bottom: 12px;
    }

    .quick-link-card h3,
    .quick-link-card p {
        text-align: center;
    }
}

/* Resume Page Styles */
.resume-container {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    padding: clamp(24px, 5vw, 48px);
    margin-top: clamp(10px, 1.5vw, 15px);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow-xl);
    border: 1.5px solid var(--border-color);
}

.resume-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    background: rgba(248, 249, 250, 0.8);
    border-radius: 15px;
    padding: 20px;
    border: 1.5px solid rgba(0, 255, 157, 0.2);
    perspective: 1000px;
}

.resume-flip-container {
    width: 100%;
    max-width: 100%;
    cursor: pointer;
}

.resume-flip-inner {
    position: relative;
    width: 100%;
    height: auto;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.resume-flip-container.flipped .resume-flip-inner {
    transform: rotateY(180deg);
}

.resume-flip-front,
.resume-flip-back {
    width: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.resume-flip-back {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotateY(180deg);
}

.resume-image-display {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: block;
}

.resume-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.resume-profile {
    display: flex;
    align-items: center;
    gap: 5px;
}

.resume-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

.resume-title h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.resume-title h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.resume-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;
}

.resume-section {
    margin-bottom: 30px;
}

.resume-section h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.resume-actions {
    display: flex;
    gap: 5px;
    margin-top: 40px;
    justify-content: center;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: clamp(20px, 3vw, 30px) 0;
    margin-top: clamp(40px, 6vw, 60px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 24px);
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(8px, 2vw, 16px);
}

.footer-right a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-right a:hover {
    color: var(--primary-color-hover);
}

.footer-left p {
    color: var(--text-color-light);
    font-size: clamp(14px, 1.8vw, 16px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 clamp(10px, 2.5vw, 16px);
    }
    
    .hero-content-index {
        gap: clamp(20px, 3vw, 30px);
    }
}

@media (max-width: 768px) {
    .sidebar-nav {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar-nav.open {
        transform: translateX(0);
    }
    
    .main-content-wrapper {
        margin-left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

    .resume-header {
        grid-template-columns: 1fr;
    }

    .resume-profile {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}

/* Social Links */
.social-links {
    position: fixed;
    left: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
}

.social-links a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Social Links Section at Bottom (mobile only) */
.social-links-section {
    padding: 20px 0;
    text-align: center;
    display: none;
}

.social-links-bottom {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-links-bottom a {
    font-size: 2.1rem;
    color: var(--text-color);
    transition: color 0.3s, transform 0.3s;
}

.social-links-bottom a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.context-me {
    margin-bottom: 20px;
}

.context-me p {
    margin-bottom: 10px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color-light);
}

.context-me strong {
    color: var(--primary-color);
    font-weight: 600;
}

.facts {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin: 30px 0 15px;
    font-weight: 600;
}

.page-title {
    text-align: center;
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: clamp(20px, 3vw, 35px);
    color: var(--text-color);
    width: 100%;
    position: relative;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
}

.page-title .highlight {
    color: var(--primary-color);
    display: inline;
}

/* Projects Section */
.projects-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    perspective: 1000px;
    transform-style: preserve-3d;
    margin: 0.25rem 0 3rem 0;
}

.project-card {
    position: absolute;
    width: 238px;
    height: 340px;
    transform-style: preserve-3d;
    animation: orbit 30s linear infinite;
    transition: z-index 0s;
}

.project-card:hover {
    z-index: 10;
}

.project-card:nth-child(1) { animation-delay: 0s; }
.project-card:nth-child(2) { animation-delay: -6s; }
.project-card:nth-child(3) { animation-delay: -12s; }
.project-card:nth-child(4) { animation-delay: -18s; }
.project-card:nth-child(5) { animation-delay: -24s; }

@keyframes orbit {
    0% {
        transform: rotateY(0) translateX(255px) rotateY(0);
    }
    100% {
        transform: rotateY(360deg) translateX(255px) rotateY(-360deg);
    }
}

.projects-grid:hover .project-card {
    animation-play-state: paused;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.project-card:hover .card-inner {
    transform: rotateY(180deg) scale(1.1);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
    background: rgba(255, 255, 255, 0.98);
}

/* Modern light colors for each card with subtle gradients */
.project-card:nth-child(1) .card-front,
.project-card:nth-child(1) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.project-card:nth-child(2) .card-front,
.project-card:nth-child(2) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.project-card:nth-child(3) .card-front,
.project-card:nth-child(3) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #fef3f2 100%);
}

.project-card:nth-child(4) .card-front,
.project-card:nth-child(4) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.project-card:nth-child(5) .card-front,
.project-card:nth-child(5) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.project-card:hover .card-front,
.project-card:hover .card-back {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition-delay: 0.15s;
}

.card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.7rem;
}

.project-image {
    width: 100%;
    height: 153px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 21px;
}

.project-image img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    margin: auto;
}

.project-content {
    padding: 0.85rem;
    height: calc(100% - 153px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-content h3 {
    font-size: 0.935rem;
    margin-bottom: 0.64rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.43px;
}

.project-content p {
    font-size: 0.68rem;
    line-height: 1.5;
    margin-bottom: 0.64rem;
    color: var(--text-color-light);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.34rem;
    margin-bottom: 0.64rem;
    justify-content: center;
}

.tech-tag {
    background: var(--primary-color);
    color: #000;
    padding: 0.17rem 0.51rem;
    border-radius: 13px;
    font-size: 0.64rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    justify-content: center;
}

.view-project {
    background: transparent;
    color: var(--primary-color);
    padding: 0.34rem 1.06rem;
    border-radius: 17px;
    text-decoration: none;
    font-size: 0.72rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.view-project:hover {
    background: var(--primary-color);
    color: #000;
    transform: none;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .project-card {
        height: 340px;
    }

    .project-image {
        height: 153px;
    }

    .project-content {
        padding: 1.06rem;
    }

    .project-content h3 {
        font-size: 0.935rem;
    }

    .project-content p {
        font-size: 0.72rem;
    }

    .tech-tag {
        font-size: 0.64rem;
    }

    .view-project {
        font-size: 0.72rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }

    .project-card {
        height: 323px;
    }

    .project-image {
        height: 136px;
    }

    .project-content {
        padding: 0.85rem;
    }
}

.section-subtitle {
    text-align: center;
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 2rem 0 0.125rem 0;
    font-weight: 500;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

/* Other Projects Section */
.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(233px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 20px;
    justify-items: center;
}

.other-project-card {
    position: relative;
    width: 233px;
    height: 332px;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.other-project-card:hover {
    z-index: 10;
}

.other-project-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.other-project-card:hover .card-inner {
    transform: rotateY(180deg) scale(1.1);
}

.other-project-card .card-front,
.other-project-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
    background: rgba(255, 255, 255, 0.98);
}

.other-project-card:nth-child(1) .card-front,
.other-project-card:nth-child(1) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.other-project-card:nth-child(2) .card-front,
.other-project-card:nth-child(2) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.other-project-card:nth-child(3) .card-front,
.other-project-card:nth-child(3) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #fef3f2 100%);
}

.other-project-card:nth-child(4) .card-front,
.other-project-card:nth-child(4) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
}

.other-project-card:nth-child(5) .card-front,
.other-project-card:nth-child(5) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 100%);
}

.other-project-card:nth-child(6) .card-front,
.other-project-card:nth-child(6) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%);
}

.other-project-card:nth-child(7) .card-front,
.other-project-card:nth-child(7) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.other-project-card:nth-child(8) .card-front,
.other-project-card:nth-child(8) .card-back {
    background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%);
}

.other-project-card:hover .card-front,
.other-project-card:hover .card-back {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transition-delay: 0.15s;
}

@media (hover: none) {
    .project-card.mobile-flipped .card-inner {
        transform: rotateY(180deg) scale(1.1);
    }

    .project-card.mobile-flipped .card-front,
    .project-card.mobile-flipped .card-back {
        border-color: rgba(0, 255, 157, 0.6);
        box-shadow: 0 0 25px rgba(0, 255, 157, 0.25), 0 0 40px rgba(0, 255, 157, 0.15);
        transition-delay: 0.15s;
    }

    .other-project-card.mobile-flipped .card-inner {
        transform: rotateY(180deg) scale(1.1);
    }

    .other-project-card.mobile-flipped .card-front,
    .other-project-card.mobile-flipped .card-back {
        border-color: rgba(0, 255, 157, 0.6);
        box-shadow: 0 0 25px rgba(0, 255, 157, 0.25), 0 0 40px rgba(0, 255, 157, 0.15);
        transition-delay: 0.15s;
    }
}

.other-project-card .card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.64rem;
}

.other-project-card .project-image {
    width: 100%;
    height: 148px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 20px;
}

.other-project-card .project-image img {
    width: auto;
    height: auto;
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    margin: auto;
}

.other-project-card .project-content {
    padding: 0.82rem;
    height: calc(100% - 148px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.other-project-card .project-content h3 {
    font-size: 0.90rem;
    margin-bottom: 0.62rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.42px;
}

.other-project-card .project-content p {
    font-size: 0.66rem;
    line-height: 1.5;
    margin-bottom: 0.62rem;
    color: var(--text-color-light);
}

.other-project-card .project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.33rem;
    margin-bottom: 0.62rem;
    justify-content: center;
}

.other-project-card .tech-tag {
    background: var(--primary-color);
    color: #000;
    padding: 0.17rem 0.49rem;
    border-radius: 13px;
    font-size: 0.62rem;
    font-weight: 500;
}

.other-project-card .view-project {
    background: transparent;
    color: var(--primary-color);
    padding: 0.33rem 1.05rem;
    border-radius: 17px;
    text-decoration: none;
    font-size: 0.69rem;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.other-project-card .view-project:hover {
    background: var(--primary-color);
    color: #000;
    transform: none;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.5);
}

@media (max-width: 992px) {
    .other-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 1rem;
        padding: 0 12px;
    }

    .other-project-card {
        width: 100%;
        max-width: 220px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .other-projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
        gap: 0.85rem;
        padding: 0 10px;
        justify-items: center;
    }

    .other-project-card {
        width: 90%;
        max-width: 240px;
        margin: 0 auto;
        height: 300px;
    }
}

.section-subtitle::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: width 0.5s ease, left 0.5s ease;
}

.section-subtitle:hover::after {
    width: 100%;
    left: 0;
}

/* Adjust spacing for the first subtitle */
.page-title + .section-subtitle {
    margin-top: 1rem;
}


/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2.5rem 0;
}

#skills .right-section {
    padding: 0 30px;
}

.skill-category {
    background: rgba(255, 255, 255, 0.98);
    padding: clamp(20px, 3vw, 28px);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.skill-category:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.skill-category h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category h3 i {
    font-size: 1.1rem;
}

.skill-category p {
    color: var(--text-color-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    #skills .right-section {
        padding: 0 20px;
    }

    .skill-category {
        padding: 1.25rem;
    }

    .skill-category h3 {
        font-size: 1.1rem;
    }

    .skill-category p {
        font-size: 0.95rem;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    margin-bottom: clamp(16px, 2vw, 20px);
    overflow: hidden;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 255, 157, 0.05);
}

.faq-question h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-question .toggle-btn {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.faq-item.active .toggle-btn {
    transform: rotate(45deg);
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer p {
    color: var(--text-color-light);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .faq-container {
        margin: 2rem auto;
        padding: 0 15px;
    }

    .faq-question {
        padding: 1.25rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }
}

/* Contact Section */
.contact-content {
    max-width: 1100px;
    margin: 3rem auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(16px, 2vw, 20px);
    background: rgba(255, 255, 255, 0.98);
    padding: clamp(20px, 3vw, 28px);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(0, 255, 157, 0.12);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-details p,
.contact-details a {
    color: var(--text-color-light);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--primary-color);
}

.contact-form {
    background: rgba(255, 255, 255, 0.98);
    padding: clamp(24px, 4vw, 36px);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
    background: rgba(255, 255, 255, 1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.contact-form .btn i {
    font-size: 1rem;
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-info,
    .contact-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-content {
        margin: 2rem auto;
        padding: 0 15px;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.5rem;
    }

    .contact-item {
        padding: 1.25rem;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Experience Section */
.experience-timeline {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.experience-item {
    display: flex;
    gap: clamp(20px, 3vw, 32px);
    background: rgba(255, 255, 255, 0.98);
    padding: clamp(24px, 4vw, 36px);
    border-radius: 16px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: flex-start;
    box-shadow: var(--shadow-md);
}

.experience-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.experience-logo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 1.5px solid rgba(0, 255, 157, 0.25);
}

.experience-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.experience-content {
    flex: 1;
}

.experience-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.experience-content h4 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.experience-date {
    color: var(--text-color-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-description {
    color: var(--text-color-light);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .experience-timeline {
        margin: 2rem auto;
        padding: 0 15px;
        gap: 2rem;
    }

    .experience-item {
        flex-direction: column;
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .experience-logo {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }

    .experience-content h3 {
        font-size: 1.3rem;
        text-align: center;
    }

    .experience-content h4 {
        font-size: 1.1rem;
        text-align: center;
    }

    .experience-date {
        text-align: center;
    }
}

/* Resume Page Responsive */
@media (max-width: 768px) {
    .resume-container {
        padding: 20px;
        margin-top: 80px;
    }

    .resume-image-container {
        padding: 15px;
    }

    .resume-actions {
        flex-direction: column;
        gap: 15px;
    }

    .resume-actions .btn {
        width: 100%;
    }
}

/* Comprehensive Responsive Improvements */

/* About Page Responsive */
@media (max-width: 968px) {
    .hero-content-about {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 100px;
    }

    .hero-content-about .left-section {
        position: static;
        max-width: 350px;
        margin: 0 auto;
    }

    .context-me p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content-about {
        padding-top: 80px;
    }

    .right-section h1 {
        font-size: 2.5rem;
    }

    .right-section h1 .highlight {
        font-size: 2.5rem;
    }

    .right-section p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    .typing-container {
        position: static;
        margin-top: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .typing-text {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }

    .typing-words {
        min-width: 150px;
        height: 1.5rem;
        line-height: 1.5rem;
    }

    .typing-words span {
        font-size: 1.5rem;
        line-height: 1.5rem;
    }
}

/* Projects Page - Orbiting Cards Responsive */
@media (max-width: 1024px) {
    .projects-grid {
        min-height: 80vh;
    }

    .project-card {
        width: 200px;
        height: 300px;
    }

    @keyframes orbit {
        0% {
            transform: rotateY(0) translateX(200px) rotateY(0);
        }
        100% {
            transform: rotateY(360deg) translateX(200px) rotateY(-360deg);
        }
    }
}

@media (max-width: 768px) {
    .projects-grid {
        min-height: 70vh;
        margin: 0.5rem 0 2rem 0;
    }

    .project-card {
        width: 180px;
        height: 270px;
    }

    .project-image {
        height: 120px;
        padding: 15px;
    }

    .project-content {
        padding: 0.7rem;
    }

    .project-content h3 {
        font-size: 0.85rem;
    }

    .project-summary {
        font-size: 0.7rem;
    }

    .project-content p {
        font-size: 0.65rem;
    }

    .tech-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.45rem;
    }

    .view-project {
        font-size: 0.65rem;
        padding: 0.3rem 0.9rem;
    }

    @keyframes orbit {
        0% {
            transform: rotateY(0) translateX(160px) rotateY(0);
        }
        100% {
            transform: rotateY(360deg) translateX(160px) rotateY(-360deg);
        }
    }

    .section-subtitle {
        font-size: 1.5rem;
        margin: 1.5rem 0 0.125rem 0;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        min-height: 60vh;
    }

    .project-card {
        width: 150px;
        height: 230px;
    }

    .project-image {
        height: 100px;
        padding: 12px;
    }

    .project-content {
        padding: 0.6rem;
    }

    .project-content h3 {
        font-size: 0.75rem;
    }

    .project-summary {
        font-size: 0.65rem;
    }

    .project-content p {
        font-size: 0.6rem;
    }

    .tech-tag {
        font-size: 0.55rem;
        padding: 0.12rem 0.4rem;
    }

    .view-project {
        font-size: 0.6rem;
        padding: 0.25rem 0.8rem;
    }

    @keyframes orbit {
        0% {
            transform: rotateY(0) translateX(130px) rotateY(0);
        }
        100% {
            transform: rotateY(360deg) translateX(130px) rotateY(-360deg);
        }
    }

    .section-subtitle {
        font-size: 1.3rem;
    }
}

/* Social Links Responsive */
@media (max-width: 768px) {
    .social-links {
        position: fixed;
        left: 10px;
        bottom: 10px;
        gap: 5px;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    .social-links-section {
        display: block;
        padding: 30px 0 20px;
    }

    .social-links-bottom {
        gap: 18px;
    }

    .social-links-bottom a {
        font-size: 2.3rem;
    }

    .hero-content-index .left-section .social-links {
        display: none;
    }
}

@media (max-width: 480px) {
    .social-links {
        left: 5px;
        bottom: 5px;
        gap: 8px;
    }

    .social-links a {
        font-size: 1.3rem;
    }

    .social-links-section {
        padding: 20px 0 10px;
    }

    .social-links-bottom {
        gap: 12px;
    }

    .social-links-bottom a {
        font-size: 2rem;
    }
}

/* Page Title Responsive */
@media (max-width: 480px) {
    .page-title {
        font-size: 2.2rem;
        padding-top: 70px;
        margin-bottom: 10px;
    }
}

/* Skills Page Additional Responsive */
@media (max-width: 480px) {
    .hero-content-about .left-section {
        max-width: 100%;
    }

    #skills .right-section {
        padding: 0 15px;
    }

    .hero-image {
        max-width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skill-category {
        padding: 1rem;
    }

    .skill-category h3 {
        font-size: 1rem;
    }

    .skill-category p {
        font-size: 0.9rem;
    }
}

/* FAQ Additional Responsive */
@media (max-width: 480px) {
    .faq-container {
        margin: 1.5rem auto;
        padding: 0 10px;
    }

    .faq-question {
        padding: 1rem;
    }

    .faq-question h3 {
        font-size: 0.95rem;
        padding-right: 0.5rem;
    }

    .faq-question .toggle-btn {
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1rem 1rem 1rem;
    }

    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* Contact Page Additional Responsive */
@media (max-width: 480px) {
    .contact-content {
        margin: 1.5rem auto;
        padding: 0 10px;
        gap: 2rem;
    }

    .contact-info h3,
    .contact-form h3 {
        font-size: 1.3rem;
    }

    .contact-item {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .contact-details h4 {
        font-size: 0.95rem;
    }

    .contact-details a {
        font-size: 0.85rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 0.75rem;
    }
}

/* Experience Page Additional Responsive */
@media (max-width: 480px) {
    .experience-timeline {
        margin: 1.5rem auto;
        padding: 0 10px;
        gap: 1.5rem;
    }

    .experience-item {
        padding: 1.25rem;
        gap: 1.25rem;
    }

    .experience-logo {
        width: 80px;
        height: 80px;
    }

    .experience-content h3 {
        font-size: 1.1rem;
    }

    .experience-content h4 {
        font-size: 1rem;
    }

    .experience-date {
        font-size: 0.85rem;
    }

    .experience-description {
        font-size: 0.9rem;
    }
}

/* Resume Page Additional Responsive */
@media (max-width: 480px) {
    .resume-container {
        padding: 15px;
        margin-top: 70px;
    }

    .resume-image-container {
        padding: 10px;
    }

    .resume-image-display {
        border-radius: 8px;
    }
}

/* Other Projects Grid Additional Responsive */
@media (max-width: 480px) {
    .other-projects-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 0 14px;
        justify-items: center;
    }

    .other-project-card {
        width: 90%;
        max-width: 210px;
        margin: 0 auto;
        height: auto;
    }

    .other-project-card .card-inner {
        min-height: 320px;
    }

    .other-project-card .project-image {
        height: 135px;
        padding: 18px;
    }

    .other-project-card .project-content {
        padding: 0.95rem;
    }
}

/* Home Page Additional Responsive */
@media (max-width: 480px) {
    .hero-content-index {
        padding-top: 70px;
        gap: 5px;
    }

    .hero-content-index .right-section h1 {
        font-size: 2rem;
    }

    .hero-content-index .right-section p {
        font-size: 1rem;
    }

    .hero-content-index .cta-buttons .btn {
        max-width: 220px;
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .hero-content-index .left-section .hero-image {
        max-width: 240px;
    }
}

/* Navigation Additional Responsive */
@media (max-width: 480px) {
    .navbar {
        padding: 12px 0;
    }

    .logo {
        font-size: 20px;
        margin-left: 15px;
    }

    .nav-links {
        margin-right: 15px;
    }

    .nav-links li a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .hamburger {
        margin-right: 15px;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
    }
}

/* Container Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Footer Responsive */
@media (max-width: 480px) {
    footer {
        padding: 20px 10px;
    }

    .footer-content {
        gap: 15px;
    }

    .footer-content p,
    .footer-content a {
        font-size: 0.85rem;
    }
}

/* Certificates Gallery Styles */
.certificates-section {
    padding: clamp(50px, 6vw, 70px) 0 clamp(30px, 4vw, 40px);
    min-height: 100vh;
}

.certificates-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: clamp(24px, 4vw, 40px);
    margin-top: clamp(15px, 2.5vw, 25px);
}

.certificate-card {
    position: relative;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    overflow: visible;
    box-shadow: var(--shadow-md);
    border: 1.5px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.certificate-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.certificate-image-wrapper {
    width: 100%;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.02) 100%);
    pointer-events: none;
    border-radius: 12px;
}

.certificate-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    display: block;
}

.certificate-card:hover img {
    transform: scale(1.03);
}

.certificate-info {
    margin-top: 15px;
    text-align: center;
    padding: 12px;
    background: rgba(0, 208, 132, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.certificate-card:hover .certificate-info {
    background: rgba(0, 208, 132, 0.1);
}

.certificate-number {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.certificate-view-text {
    color: var(--text-color-light);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.certificate-card:hover .certificate-view-text {
    color: var(--primary-color);
}

.certificate-view-text i {
    font-size: 1rem;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    animation: zoomIn 0.3s ease;
}

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

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--primary-color);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

@media (max-width: 1024px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 24px;
    }

    .certificate-image-wrapper {
        /* No min-height - let images display at natural size */
    }

    .certificate-card img {
        /* No max-height - let images display at full size */
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 5px;
    }

    .certificate-image-wrapper {
        padding: 12px;
    }

    .certificate-card img {
        /* No max-height - let images display at full size */
    }

    .certificate-card {
        padding: 15px;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .lightbox-close {
        top: -35px;
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .certificate-image-wrapper {
        padding: 10px;
    }

    .certificate-card img {
        /* No max-height - let images display at full size */
    }

    .certificate-card {
        padding: 12px;
    }

    .certificate-info {
        padding: 10px;
    }

    .certificate-number {
        font-size: 0.9rem;
    }

    .certificate-view-text {
        font-size: 0.8rem;
    }
}

