/* ===========================
   PORTFOLIO STYLES
   Grey, Black, White Color Scheme
   =========================== */

/* ===========================
   RESET & ROOT VARIABLES
   =========================== */
:root {
    --primary-grey: #666666;
    --light-grey: #999999;
    --medium-grey: #555555;
    --dark-grey: #333333;
    --darker-grey: #1a1a1a;
    --black: #050505;
    --white: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 16px;
    --nav-width: 900px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(ellipse at bottom, #050510 0%, #000000 100%);
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 120px;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    font-family: var(--font-heading);
    letter-spacing: -5px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-image-container {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(180deg, var(--accent-blue), transparent);
    z-index: 10;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: grayscale(20%) contrast(1.1);
}

.status-badge {
    position: relative;
    margin-top: -20px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid var(--accent-blue);
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
    z-index: 20;
}

.status-text {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #a5a5a5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.name-first,
.name-last {
    display: inline-block;
    /* Ensure visible explicitly if overridden */
    opacity: 1;
}


/* ===========================
   PROJECTS SECTION WITH CODE BLOCKS
   =========================== */

.projects-section {
    position: relative;
    z-index: 10;
    padding: 100px 2rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(20, 20, 20, 0.5) 100%);
    border-top: 1px solid var(--border-color);
}

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

.project-card {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.8s ease-out both;
}

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

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

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

.project-card:hover {
    border-color: rgba(150, 150, 150, 0.5);
    box-shadow: 0 20px 50px rgba(150, 150, 150, 0.1);
    transform: translateY(-10px);
}

.project-code {
    background: rgba(0, 0, 0, 0.6);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.5;
}

.project-code::-webkit-scrollbar {
    width: 6px;
}

.project-code::-webkit-scrollbar-track {
    background: rgba(102, 102, 102, 0.1);
}

.project-code::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 3px;
}

.project-code::-webkit-scrollbar-thumb:hover {
    background: #999999;
}

.project-code pre {
    margin: 0;
    font-family: 'Courier New', monospace;
}

.project-code code {
    color: #999999;
    background: none;
    padding: 0;
}

/* Code syntax highlighting */
.project-code code {
    display: block;
    white-space: pre;
    word-break: break-word;
    word-wrap: break-word;
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, white, #999999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 102, 102, 0.1);
    border: 1px solid #666666;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #999999;
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(102, 102, 102, 0.15);
    border-color: #999999;
    color: #ffffff;
}

.projects-cta {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.projects-cta p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ===========================
   BOTTOM RED SECTION
   =========================== */
/* Removed Bottom Red Section Styles */

.bottom-reveal-section .section-title span {
    color: white !important;
}

.bottom-reveal-section .section-title .italic {
    color: rgba(255, 255, 255, 0.7) !important;
}

.bottom-reveal-section p,
.bottom-reveal-section a {
    color: rgba(255, 255, 255, 0.9);
}

.about-card,
.experience-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.contact-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item span {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
}

.contact-item a {
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-item a:hover {
    opacity: 0.8;
}

/* Projects Styles Update */
.projects-section {
    background: transparent;
    padding-bottom: 100px;
}

.project-card {
    border-radius: 30px;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.projects-cta .view-all-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: white;
    color: black;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s;
}

.projects-cta .view-all-btn:hover {
    transform: scale(1.05);
}

/* ===========================
   RESPONSIVE PROJECTS
   =========================== */

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

    .hero-content {
        margin-top: 20px;
    }

    .projects-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-code {
        max-height: 250px;
        font-size: 0.75rem;
        padding: 1rem;
    }

    .project-info {
        padding: 1.5rem;
    }

    .project-info h3 {
        font-size: 1.1rem;
    }
}

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

    .hero-content {
        margin-top: 10px;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-code {
        max-height: 200px;
        font-size: 0.7rem;
        padding: 0.75rem;
    }

    .project-info {
        padding: 1rem;
    }

    .project-info h3 {
        font-size: 1rem;
    }

    .project-info p {
        font-size: 0.85rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}


/* ===========================
   SPACE STARFIELD BACKGROUND
   =========================== */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Star layers for parallax depth */
.star-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Individual star styles */
.star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
}

/* Tiny distant stars */
.star-tiny {
    width: 1px;
    height: 1px;
    opacity: 0.6;
    animation: twinkle 3s ease-in-out infinite;
}

/* Small stars */
.star-small {
    width: 2px;
    height: 2px;
    opacity: 0.8;
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
    animation: twinkle 4s ease-in-out infinite;
}

/* Medium stars with glow */
.star-medium {
    width: 3px;
    height: 3px;
    opacity: 0.9;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8),
        0 0 12px rgba(200, 200, 255, 0.4);
    animation: twinkleBright 5s ease-in-out infinite;
}

/* Bright stars with color tints */
.star-bright {
    width: 4px;
    height: 4px;
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 255, 255, 1),
        0 0 20px rgba(150, 180, 255, 0.6),
        0 0 40px rgba(100, 150, 255, 0.3);
    animation: twinkleBright 6s ease-in-out infinite;
}

/* Colored accent stars */
.star-blue {
    background: #aaccff;
    box-shadow: 0 0 8px rgba(170, 200, 255, 1),
        0 0 20px rgba(100, 150, 255, 0.6);
}

.star-gold {
    background: #ffeedd;
    box-shadow: 0 0 8px rgba(255, 238, 200, 1),
        0 0 20px rgba(255, 200, 100, 0.6);
}

/* Twinkle animations */
@keyframes twinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.2);
    }
}

@keyframes twinkleBright {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    25% {
        opacity: 1;
        transform: scale(1.3);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }

    75% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Shooting star */
.shooting-star {
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transform: rotate(-45deg);
    animation: shootingStar 8s ease-in-out infinite;
}

.shooting-star:nth-child(1) {
    top: 10%;
    left: 80%;
    animation-delay: 0s;
}

.shooting-star:nth-child(2) {
    top: 30%;
    left: 90%;
    animation-delay: 3s;
}

.shooting-star:nth-child(3) {
    top: 50%;
    left: 70%;
    animation-delay: 6s;
}

@keyframes shootingStar {
    0% {
        opacity: 0;
        transform: rotate(-45deg) translateX(0);
    }

    2% {
        opacity: 1;
    }

    10% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-300px);
    }

    100% {
        opacity: 0;
        transform: rotate(-45deg) translateX(-300px);
    }
}

/* Nebula glow effects */
.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: nebulaPulse 15s ease-in-out infinite;
}

.nebula-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 50, 150, 0.4) 0%, transparent 70%);
    top: 20%;
    left: 10%;
}

.nebula-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(50, 100, 150, 0.3) 0%, transparent 70%);
    bottom: 30%;
    right: 15%;
    animation-delay: 5s;
}

@keyframes nebulaPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

/* Ensure content appears above stars */
body {
    position: relative;
    z-index: 10;
}

.navbar {
    z-index: 1000;
}

.hero {
    z-index: 10;
    position: relative;
}


/* ===========================
   MODAL / FLOATING NAVIGATION BAR
   =========================== */

.navbar {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: var(--nav-width);
    height: 70px;
    z-index: 2000;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled {
    top: 15px;
    background: rgba(15, 15, 15, 0.9);
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    width: 100%;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding-right: 20px;
    position: relative;
}

/* Navbar logo with animations */
.nav-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
    animation: navLogoFloat 3s ease-in-out infinite;
}

@keyframes navLogoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.logo:hover .nav-logo-img {
    transform: scale(1.16) rotate(2.4deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5)) drop-shadow(0 0 30px rgba(255, 255, 255, 0.3));
    animation: none;
}

/* Logo glow effect */
.logo::before {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.logo:hover::before {
    opacity: 1;
    animation: logoGlowPulse 1.5s ease-in-out infinite;
}

@keyframes logoGlowPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}

.logo-emoji {
    font-size: 1.4rem;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    position: relative;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ===========================
   ADVANCED FLOATING DROPDOWN
   =========================== */

/* Dropdown Container */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

/* Toggle Link Styling */
.nav-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    /* Keep text above */
}

.dropdown-arrow {
    font-size: 0.65rem;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--medium-grey);
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--white);
}

/* --- THE FLOATING MENU (NEW) --- */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    /* Floating gap */
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.95);

    background: rgba(255, 255, 255, 0.08);
    /* Pill Highlight */
    color: var(--white);
    transform: translateX(4px);
    /* Subtle nudge */
}

.nav-dropdown-item:hover span.icon {
    filter: grayscale(0);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
    pointer-events: auto;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .navbar {
        height: auto;
        min-height: 70px;
        padding: 1rem 1.5rem;
    }

    .nav-wrapper {
        flex-wrap: wrap;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        padding-top: 1rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 18px;
    }

    .nav-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .nav-dropdown-toggle {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-radius: 0;
        box-shadow: none;
        min-width: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        opacity: 1;
        visibility: visible;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        pointer-events: auto;
        align-items: stretch;
    }

    /* Override any specific pointer-events: none from desktop if it leaks (it shouldn't but good to be safe) */

    .nav-dropdown-item {
        display: block;
        text-align: center;
        width: 100%;
        padding: 12px 18px;
        border-radius: 50px;
        color: #a0a0a0;
        background: transparent;
    }

    /* Hide icons for simpler look on mobile to match other links */
    .nav-dropdown-item .icon {
        display: none;
    }

    .nav-dropdown-item:hover {
        color: #a0a0a0;
        background: transparent;
        transform: none;
    }

    .nav-logo-img {
        height: 35px;
        /* Smaller for mobile */
        mix-blend-mode: lighten;
        /* Attempt to blend background if dark on dark */
    }
}

/* ===========================
   404 ERROR PAGE STYLES
   =========================== */
.error-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-home:hover {
    transform: scale(1.05);
}

/* ===========================
   404 ERROR PAGE STYLES
   =========================== */
.error-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff, #666);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.5rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    background: white;
    color: black;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.2s;
}

.btn-home:hover {
    transform: scale(1.05);
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
}

#particleContainer {
    z-index: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 102, 102, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(150, 150, 150, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.profile-wrapper {
    position: relative;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.profile-image-container {
    position: relative;
    width: 220px;
    height: 220px;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #666666;
    object-fit: cover;
    animation: pulse-glow 3s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(102, 102, 102, 0.4);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(150, 150, 150, 0.7);
    border-color: #999999;
}

.glow-effect {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(150, 150, 150, 0.3);
    animation: spin-glow 8s linear infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(102, 102, 102, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 70px rgba(150, 150, 150, 0.7);
        transform: scale(1.02);
    }
}

@keyframes spin-glow {
    from {
        transform: rotate(0deg);
    }

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

.status-badge {
    position: relative;
    background: rgba(150, 150, 150, 0.08);
    border: 1.5px solid #666666;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #999999;
    font-weight: 500;
    animation: slideIn 0.6s ease-out 0.2s both;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.status-dot {
    width: 8px;
    height: 8px;
    background: #666666;
    border-radius: 50%;
    animation: blink-dot 2s infinite;
    box-shadow: 0 0 10px rgba(102, 102, 102, 0.8);
}

@keyframes blink-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 10px rgba(102, 102, 102, 0.8);
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(102, 102, 102, 0.4);
    }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 800;
    margin: 1.5rem 0;
    line-height: 1.2;
    text-transform: capitalize;
    letter-spacing: -2px;
}

.hero-title span {
    display: block;
    animation: slideInLeft 0.7s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

.name-first {
    color: white;
    font-weight: 800;
}

.name-last {
    background: linear-gradient(135deg, #999999, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 1.5rem auto 2rem;
    line-height: 1.8;
    animation: fadeIn 0.8s ease-out 0.4s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-subtitle .highlight {
    color: var(--light-text);
    font-weight: 600;
    background: linear-gradient(135deg, #999999, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    animation: fadeIn 0.8s ease-out 0.5s both;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #666666;
    background: rgba(102, 102, 102, 0.05);
    color: #999999;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, #666666, #999999);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-link:hover {
    border-color: #999999;
    box-shadow: 0 0 20px rgba(150, 150, 150, 0.5);
    transform: translateY(-5px);
}

.social-link:hover::before {
    opacity: 0.1;
}

.social-link span {
    transition: transform 0.3s ease;
    z-index: 1;
}

.social-link:hover span {
    transform: scale(1.2);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.1), rgba(150, 150, 150, 0.05));
    border: 2px solid #666666;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #666666, #999999);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    border-color: #999999;
    box-shadow: 0 0 30px rgba(150, 150, 150, 0.4);
    transform: translateY(-3px);
    color: var(--black);
}

.cta-button:hover::before {
    opacity: 0.2;
}

.cta-button:active {
    transform: translateY(-1px);
}

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: rotate(45deg) translateX(3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.chevron {
    width: 24px;
    height: 24px;
    color: #666666;
    stroke-width: 2;
    animation: pulse-chevron 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes pulse-chevron {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-section {
    position: relative;
    z-index: 10;
    padding: 100px 2rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.5) 0%, rgba(10, 10, 10, 0.5) 100%);
    border-top: 1px solid var(--border-color);
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
    color: white;
    position: relative;
    z-index: 21;
    visibility: visible !important;
    opacity: 1 !important;
}

.section-title span {
    display: block;
    color: white;
    opacity: 1 !important;
    visibility: visible !important;
}


.section-title .italic {
    font-style: italic;
    background: linear-gradient(135deg, #999999, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    line-height: 1.8;
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    margin-top: 3rem;
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

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

.about-card:hover {
    border-color: rgba(150, 150, 150, 0.3);
    box-shadow: 0 20px 50px rgba(150, 150, 150, 0.1);
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, white, #999999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-image {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    margin: 0 auto 2rem;
    object-fit: cover;
    border: 2px solid #666666;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(150, 150, 150, 0.2);
}

.card-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(150, 150, 150, 0.4);
}

.card-text {
    font-size: 1rem;
    color: var(--light-text);
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: justify;
}

.social-links-inline {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-links-inline a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1.5px solid #666666;
    border-radius: 25px;
    color: #999999;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-links-inline a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #666666, #999999);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-links-inline a:hover {
    border-color: #999999;
    color: white;
    box-shadow: 0 0 20px rgba(150, 150, 150, 0.3);
    transform: translateY(-2px);
}

/* ===========================
   ENHANCED EXPERIENCE CARDS
   =========================== */

/* Company name styling */
.company-name {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0.3rem 0;
    font-weight: 500;
}

/* Location styling */
.location {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0.2rem 0 1rem 0;
    font-style: italic;
}

/* Experience details container */
.experience-details {
    margin-top: 1rem;
}

.experience-summary {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Accordion for detailed information */
.experience-accordion {
    margin: 1rem 0;
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(0, 255, 136, 0.05);
    transition: all 0.3s ease;
}

.experience-accordion:hover {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.08);
}

.experience-accordion summary {
    cursor: pointer;
    font-weight: 600;
    color: #00ff88;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-accordion summary::-webkit-details-marker {
    display: none;
}

.experience-accordion summary::before {
    content: '▶';
    transition: transform 0.3s ease;
    display: inline-block;
}

.experience-accordion[open] summary::before {
    transform: rotate(90deg);
}

.details-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.details-content h4 {
    color: #00ff88;
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

.details-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.details-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.details-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #00ff88;
}

.details-content li strong {
    color: #00d4ff;
}

.project-highlight {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border-left: 3px solid #00d4ff;
    border-radius: 4px;
    font-style: italic;
    line-height: 1.6;
}

/* Skills used badges */
.skills-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.2));
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.3), rgba(0, 212, 255, 0.3));
    border-color: rgba(0, 255, 136, 0.5);
    transform: translateY(-2px);
}

/* Responsive adjustments for experience cards */
@media (max-width: 768px) {
    .experience-accordion {
        padding: 0.8rem;
    }

    .details-content li {
        font-size: 0.9rem;
        padding-left: 1.2rem;
    }

    .skill-badge {
        font-size: 0.8rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 480px) {
    .company-name {
        font-size: 0.85rem;
    }

    .location {
        font-size: 0.8rem;
    }

    .experience-accordion {
        padding: 0.7rem;
    }

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

    .details-content li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        padding-left: 1rem;
    }

    .project-highlight {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .skill-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

.social-links-inline a:hover::before {
    opacity: 0.15;
}

/* ===========================
   FAQ SECTION
   =========================== */
.faq-section {
    position: relative;
    z-index: 10;
    padding: 100px 2rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(20, 20, 20, 0.5) 100%);
    border-top: 1px solid var(--border-color);
}

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

.faq-item {
    background: rgba(102, 102, 102, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideUp 0.8s ease-out both;
}

.faq-item:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.3s;
}

.faq-item:hover {
    border-color: rgba(150, 150, 150, 0.5);
    background: rgba(102, 102, 102, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(150, 150, 150, 0.15);
}

.faq-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    transition: color 0.3s ease;
}

.faq-item:hover h4 {
    color: #999999;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===========================
   SKILLS SECTION
   =========================== */
.skills-section {
    position: relative;
    z-index: 10;
    padding: 100px 2rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.5) 0%, rgba(10, 10, 10, 0.5) 100%);
    border-top: 1px solid var(--border-color);
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.skill-tag {
    padding: 12px 24px;
    background: rgba(102, 102, 102, 0.08);
    border: 1.5px solid #666666;
    border-radius: 25px;
    color: var(--light-text);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
    animation: fadeIn 0.6s ease-out backwards;
}

.skill-tag:nth-child(1) {
    animation-delay: 0.05s;
}

.skill-tag:nth-child(2) {
    animation-delay: 0.1s;
}

.skill-tag:nth-child(3) {
    animation-delay: 0.15s;
}

.skill-tag:nth-child(4) {
    animation-delay: 0.2s;
}

.skill-tag:nth-child(5) {
    animation-delay: 0.25s;
}

.skill-tag:nth-child(6) {
    animation-delay: 0.3s;
}

.skill-tag:nth-child(7) {
    animation-delay: 0.35s;
}

.skill-tag:nth-child(8) {
    animation-delay: 0.4s;
}

.skill-tag:nth-child(9) {
    animation-delay: 0.45s;
}

.skill-tag:nth-child(10) {
    animation-delay: 0.5s;
}

.skill-tag:nth-child(11) {
    animation-delay: 0.55s;
}

.skill-tag:nth-child(12) {
    animation-delay: 0.6s;
}

.skill-tag:nth-child(13) {
    animation-delay: 0.65s;
}

.skill-tag:nth-child(14) {
    animation-delay: 0.7s;
}

.skill-tag:nth-child(15) {
    animation-delay: 0.75s;
}

.skill-tag:nth-child(16) {
    animation-delay: 0.8s;
}

.skill-tag:hover {
    border-color: #999999;
    background: rgba(102, 102, 102, 0.15);
    box-shadow: 0 0 20px rgba(150, 150, 150, 0.4);
    transform: translateY(-5px) scale(1.05);
    color: #ffffff;
}

/* Tooltip Styles for Skills */
.skill-tag[data-tooltip] {
    position: relative;
}

.skill-tag[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20, 20, 20, 0.95);
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    max-width: 250px;
    width: max-content;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(150, 150, 150, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skill-tag[data-tooltip]::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border: 6px solid transparent;
    border-top-color: rgba(20, 20, 20, 0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.skill-tag[data-tooltip]:hover::after,
.skill-tag[data-tooltip]:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.experience-card {
    background: rgba(102, 102, 102, 0.08);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-top: 3rem;
    transition: all 0.3s ease;
    animation: slideUp 0.8s ease-out 0.2s both;
}

.experience-card:hover {
    border-color: rgba(150, 150, 150, 0.5);
    background: rgba(102, 102, 102, 0.12);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(150, 150, 150, 0.2);
}

.experience-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #999999;
    margin-bottom: 0.5rem;
}

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

/* ===========================
   PROJECTS SECTION
   =========================== */
.projects-section {
    position: relative;
    z-index: 10;
    padding: 100px 2rem;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(20, 20, 20, 0.5) 100%);
    border-top: 1px solid var(--border-color);
}

.projects-section .section-title {
    animation: slideInLeft 0.7s ease-out;
}

.projects-section .section-intro {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* CONTACT SECTION */
.contact-section {
    position: relative;
    z-index: 10;
    padding: 100px 2rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.5) 0%, rgba(10, 10, 10, 0.5) 100%);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.2;
    color: white;
}

.section-title span {
    display: block;
    color: white;
}


.section-title .italic {
    font-style: italic;
    background: linear-gradient(135deg, #999999, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 300;
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
    line-height: 1.8;
}

/* CTA Button - Contact Me */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    background: linear-gradient(135deg, rgba(102, 102, 102, 0.1), rgba(150, 150, 150, 0.05));
    border: 2px solid var(--primary-grey);
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.8s ease-out 0.6s both;
    margin: 0 auto 3rem;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #666666, #999999);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    border-color: #999999;
    box-shadow: 0 0 30px rgba(150, 150, 150, 0.4);
    transform: translateY(-3px);
    color: var(--black);
}

.cta-button:hover::before {
    opacity: 0.2;
}

.cta-button:active {
    transform: translateY(-1px);
}

.arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: rotate(45deg) translateX(3px);
}

/* Contact Links - Horizontal Layout */
.contact-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    border: 2px solid var(--primary-grey);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.8s ease-out backwards;
    white-space: nowrap;
}

.contact-link:nth-child(1) {
    animation-delay: 0.2s;
}

.contact-link:nth-child(2) {
    animation-delay: 0.3s;
}

.contact-link:nth-child(3) {
    animation-delay: 0.4s;
}

.contact-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #666666, #999999);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-link:hover {
    border-color: #999999;
    color: var(--black);
    box-shadow: 0 0 30px rgba(150, 150, 150, 0.5);
    transform: translateY(-5px);
}

.contact-link:hover::before {
    opacity: 0.3;
}

.contact-email {
    font-size: 1.1rem;
    color: var(--light-text);
    text-align: center;
    margin-top: 2rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.contact-email::selection {
    background: rgba(150, 150, 150, 0.3);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 80px 1.5rem;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .section-intro {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.95rem;
        margin-bottom: 2.5rem;
    }

    .contact-links {
        gap: 1rem;
        margin: 1.5rem auto;
    }

    .contact-link {
        padding: 12px 20px;
        font-size: 0.9rem;
        gap: 8px;
    }

    .contact-email {
        font-size: 1rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 1rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .section-intro {
        font-size: 0.95rem;
        padding: 0 0.5rem;
        margin: 1rem auto 2rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-bottom: 2rem;
        width: auto;
    }

    .contact-links {
        gap: 0.8rem;
        margin: 1rem auto;
    }

    .contact-link {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .contact-email {
        font-size: 0.95rem;
        margin-top: 1rem;
    }
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    position: relative;
    z-index: 10;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer p {
    animation: fadeIn 0.8s ease-out;
}

.footer strong {
    color: #999999;
    font-weight: 700;
    transition: all 0.3s ease;
}

.footer:hover strong {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(150, 150, 150, 0.5);
}

/* ===========================
   UPLOAD SECTION
   =========================== */
.upload-section {
    position: relative;
    z-index: 10;
    padding: 100px 2rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.5) 0%, rgba(10, 10, 10, 0.5) 100%);
    border-top: 1px solid var(--border-color);
}

.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-container h3 {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    color: #999999;
}

#uploadForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.upload-input-wrapper {
    position: relative;
}

#imageInput {
    display: none;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    border: 2px dashed #666666;
    border-radius: 12px;
    background: rgba(102, 102, 102, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.upload-label:hover {
    border-color: #999999;
    background: rgba(102, 102, 102, 0.1);
    box-shadow: 0 0 20px rgba(150, 150, 150, 0.2);
}

.upload-icon {
    font-size: 2.5rem;
}

.upload-label span:last-child {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
}

.image-preview {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
}

.image-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid #666666;
    box-shadow: 0 10px 30px rgba(150, 150, 150, 0.2);
}

.preview-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hamburger {
        display: flex;
    }

    .logo-text {
        display: none;
    }

    .hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .profile-image-container {
        width: 180px;
        height: 180px;
    }

    .profile-image {
        border-width: 2px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .social-icons {
        gap: 1.5rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    .cta-button {
        padding: 10px 24px;
        font-size: 0.95rem;
    }

    .about-card {
        padding: 2rem;
    }

    .card-image {
        width: 150px;
        height: 150px;
    }

    .section-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }

    .section-content {
        padding: 0 1rem;
    }

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

    .skills-container {
        gap: 1rem;
    }

    .skill-tag {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

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

    .contact-link {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .navbar {
        padding: 1rem;
    }

    .nav-wrapper {
        padding: 0 1rem;
    }

    .section-content {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 60px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        letter-spacing: -1px;
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin: 1rem auto;
    }

    .social-icons {
        gap: 1rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
        gap: 6px;
    }

    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .section-intro {
        font-size: 0.95rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .card-image {
        width: 120px;
        height: 120px;
    }

    .card-text {
        font-size: 0.9rem;
        text-align: center;
    }

    .faq-item {
        padding: 1.5rem;
    }

    .faq-item h4 {
        font-size: 1rem;
    }

    .faq-item p {
        font-size: 0.85rem;
    }

    .skills-container {
        gap: 0.8rem;
    }

    .skill-tag {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    .experience-card h3 {
        font-size: 1.2rem;
    }

    .contact-link {
        padding: 10px 16px;
        font-size: 0.9rem;
        gap: 8px;
    }

    .contact-email {
        font-size: 0.95rem;
    }

    .footer {
        padding: 2rem 1rem;
        font-size: 0.85rem;
    }
}

/* ===========================
   ANIMATIONS & UTILITY CLASSES
   =========================== */

a,
button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::selection {
    background: rgba(150, 150, 150, 0.3);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #999999;
    box-shadow: 0 0 10px rgba(150, 150, 150, 0.5);
}

:focus-visible {
    outline: 2px solid #666666;
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px dashed #666666;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {

    .navbar,
    .scroll-indicator,
    .particle-container {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        color: #666666;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --black: #000000;
        --darker-grey: #0a0a0a;
    }
}

@media (prefers-contrast: more) {
    :root {
        --primary-grey: #555555;
        --border-color: rgba(100, 100, 100, 0.4);
    }

    .nav-link::after,
    .cta-button {
        border-width: 3px;
    }
}

@supports (backdrop-filter: blur(1px)) {
    .navbar {
        backdrop-filter: blur(15px);
    }
}

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

body {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@supports (container-type: inline-size) {
    .section-content {
        container-type: inline-size;
    }
}

/* ===========================
   ADDITIONAL HOVER EFFECTS
   =========================== */

.logo:active {
    transform: scale(0.98);
}

.social-link:active {
    transform: translateY(-3px);
}

.cta-button:active {
    transform: translateY(-1px) scale(0.98);
}

.skill-tag:active {
    transform: translateY(-3px) scale(0.98);
}

.contact-link:active {
    transform: translateY(-3px) scale(0.98);
}

/* ===========================
   FOCUS STATES FOR ACCESSIBILITY
   =========================== */

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #666666;
    outline-offset: 2px;
}

/* ===========================
   FORM ELEMENTS STYLING
   =========================== */

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
    background-color: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--border-color);
    color: var(--light-text);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
    border-color: #666666;
    background-color: rgba(50, 50, 50, 0.9);
    box-shadow: 0 0 10px rgba(102, 102, 102, 0.2);
}

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

/* ===========================
   LOADING STATES
   =========================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(102, 102, 102, 0.3);
    border-radius: 50%;
    border-top-color: #666666;
    animation: spin 1s linear infinite;
}

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

/* ===========================
   BADGE STYLES
   =========================== */

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 102, 102, 0.1);
    border: 1px solid #666666;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #999999;
}

.badge.success {
    border-color: #666666;
    background: rgba(102, 102, 102, 0.1);
    color: #999999;
}

.badge.error {
    border-color: #666666;
    background: rgba(102, 102, 102, 0.1);
    color: #999999;
}

.badge.warning {
    border-color: #666666;
    background: rgba(102, 102, 102, 0.1);
    color: #999999;
}

/* ===========================
   MODAL STYLES
   =========================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: var(--darker-grey);
    margin: 10% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.modal-close {
    color: #999999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

/* ===========================
   NOTIFICATION STYLES
   =========================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    background: rgba(102, 102, 102, 0.9);
    color: white;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideInDown 0.3s ease-out;
}

.notification.success {
    background: rgba(102, 102, 102, 0.9);
    border-left: 4px solid #666666;
}

.notification.error {
    background: rgba(102, 102, 102, 0.9);
    border-left: 4px solid #666666;
}

.notification.warning {
    background: rgba(102, 102, 102, 0.9);
    border-left: 4px solid #666666;
}

.notification.info {
    background: rgba(102, 102, 102, 0.9);
    border-left: 4px solid #666666;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* ===========================
   COOKIE CONSENT BANNER
   =========================== */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 30, 0.95);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    animation: slideUp 0.3s ease-out;
}

.cookie-consent p {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    color: var(--light-text);
}

.cookie-consent button {
    padding: 8px 20px;
    background: #666666;
    border: 1px solid #666666;
    border-radius: 6px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-consent button:hover {
    background: #999999;
    border-color: #999999;
}

.consent-accept {
    background: #666666 !important;
}

.consent-decline {
    background: transparent !important;
    border: 1px solid #666666 !important;
    color: #999999;
}

.consent-decline:hover {
    background: rgba(102, 102, 102, 0.1) !important;
    color: white;
}

/* ===========================
   CUSTOM CURSOR (Optional)
   =========================== */

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid #666666;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    display: none;
    transition: all 0.1s ease;
}

.custom-cursor.hover {
    width: 30px;
    height: 30px;
    background: rgba(102, 102, 102, 0.1);
    border-color: #999999;
}

.custom-cursor-trail {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #666666;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
    display: none;
}

@media (hover: fine) {
    .custom-cursor {
        display: block;
    }

    .custom-cursor-trail {
        display: block;
    }
}

/* ===========================
   ERROR PAGE STYLES
   =========================== */

.error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: #666666;
    margin: 0;
}

.error-message {
    font-size: 1.5rem;
    color: var(--light-text);
    margin: 1rem 0 2rem;
}

.error-description {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

/* ===========================
   RIPPLE EFFECT
   =========================== */

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ===========================
   LINK PREVIEW
   =========================== */

.link-preview {
    display: none !important;
    /* Disabled per user request */
    position: fixed;
    background: rgba(30, 30, 30, 0.95);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--light-text);
    z-index: 1001;
    pointer-events: none;
    animation: fadeIn 0.2s ease-out;
    white-space: nowrap;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.opacity-50 {
    opacity: 0.5;
}

.opacity-75 {
    opacity: 0.75;
}

.rounded {
    border-radius: 8px;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-sm {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.no-scroll {
    overflow: hidden;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* ===========================
   ANIMATION CLASSES
   =========================== */

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

.animate-slide-down {
    animation: slideInDown 0.5s ease-out;
}

.animate-scale {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================
   GRADIENT UTILITIES
   =========================== */

.gradient-text-grey {
    background: linear-gradient(135deg, #999999, #666666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-border {
    position: relative;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #666666, #999999);
    border-radius: 8px;
    z-index: -1;
}

/* ===========================
   SMOOTH SCROLLING ENHANCEMENT
   =========================== */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* ===========================
   ASPECT RATIO UTILITIES
   =========================== */

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-video {
    aspect-ratio: 16 / 9;
}

/* ===========================
   GRID LAYOUTS
   =========================== */

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

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

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

@media (max-width: 768px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   FLEXBOX UTILITIES
   =========================== */

.flex {
    display: flex;
}

/* ===========================
   GITHUB STATS & SOCIAL ICONS
   =========================== */

.github-stats-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    width: 100%;
}

.github-stats-card,
.github-lang-card {
    height: 165px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.github-stats-card:hover,
.github-lang-card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
}

.github-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
}

.github-btn svg {
    transition: transform 0.3s ease;
}

.github-btn:hover svg {
    transform: rotate(360deg);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: white;
    /* Ensure icons are white */
}

.social-icon:hover {
    background: #00ff88;
    color: black;
    /* Icon turns black on accent background */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

/* Responsive adjust for GitHub stats */
@media (max-width: 768px) {

    .github-stats-card,
    .github-lang-card {
        width: 100%;
        height: auto;
    }
}

/* ===========================
   SCROLL PROGRESS BAR
   =========================== */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.05);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* ===========================
   BACK TO TOP BUTTON
   =========================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #00ff88;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 5000;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #00ff88;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.4);
}


/* ===========================
   TYPEWRITER EFFECT
   =========================== */
.cursor {
    display: inline-block;
    width: 2px;
    background-color: #00ff88;
    animation: blink 1s infinite;
    margin-left: 2px;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}


/* ===========================
   3D TILT EFFECT
   =========================== */
.project-card,
.experience-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}


/* ===========================
   EXPERIENCE TIMELINE
   =========================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
    padding: 0 1rem;
}

/* Center line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 255, 136, 0.1), rgba(0, 255, 136, 0.3), rgba(0, 255, 136, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

/* Dots on the center line */
.timeline-dot {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #0f0f0f;
    border: 3px solid #00ff88;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.9);
    }
}

/* Date badge */
.timeline-date {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #00ff88;
    font-weight: 500;
    white-space: nowrap;
    z-index: 3;
}

/* Content cards - alternating left/right */
.timeline-content {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.8rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(5px);
    position: relative;
    width: 45%;
}

/* Odd items - left side */
.timeline-item:nth-child(odd) .timeline-content {
    margin-right: auto;
    margin-left: 0;
    text-align: left;
}

/* Even items - right side */
.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.timeline-content h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    color: #00ff88;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.timeline-content p {
    color: #a0a0a0;
    font-size: 0.9rem;
    line-height: 1.7;
}

.timeline-content:hover {
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.6);
    background: rgba(30, 30, 30, 0.7);
}

/* Mobile Timeline */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
        transform: translateX(-50%);
        top: 35px;
    }

    .timeline-date {
        position: relative;
        left: 0;
        transform: none;
        margin: 0 0 1rem 40px;
        display: inline-block;
    }

    .timeline-content {
        width: calc(100% - 50px);
        margin-left: 50px !important;
        margin-right: 0 !important;
        text-align: left !important;
    }

    .timeline-item {
        margin-bottom: 2.5rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .timeline-content {
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===========================
   SUBTLE SECTION ANIMATIONS
   =========================== */
.section-title {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.section-intro {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.faq-item,
.skill-tag,
.project-card {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.faq-item:nth-child(1) {
    animation-delay: 0.1s;
}

.faq-item:nth-child(2) {
    animation-delay: 0.2s;
}

.faq-item:nth-child(3) {
    animation-delay: 0.3s;
}

.skill-tag {
    animation-delay: calc(var(--i, 0) * 0.05s);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ===========================
   TECHNOLOGY TICKER
   =========================== */
.tech-ticker-section {
    padding: 4rem 0;
    background: rgba(10, 10, 10, 0.5);
    overflow: hidden;
}

.ticker-container {
    margin-bottom: 3rem;
}

.ticker-container:last-child {
    margin-bottom: 0;
}

.ticker-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ff88;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ticker-wrapper {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.ticker-track {
    display: flex;
    gap: 6rem;
    animation: scroll-left 20s linear infinite;
    width: max-content;
}

.ticker-reverse {
    animation: scroll-right 20s linear infinite;
}

.ticker-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 100px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ticker-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
    transform: translateY(-5px);
}

.ticker-item i {
    font-size: 2.5rem;
}

.ticker-item span {
    font-size: 0.85rem;
    color: #a0a0a0;
    font-weight: 500;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Pause on hover */
.ticker-wrapper:hover .ticker-track {
    animation-play-state: paused;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ticker-item {
        min-width: 80px;
        padding: 0.8rem;
    }

    .ticker-item i {
        font-size: 2rem;
    }

    .ticker-track {
        gap: 2rem;
    }
}

/* ===========================
   COMPREHENSIVE RESPONSIVE OPTIMIZATIONS
   =========================== */

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .navbar {
        width: 95%;
        padding: 0.8rem 1rem;
    }

    .ticker-item {
        min-width: 70px;
        padding: 0.6rem;
    }

    .ticker-item i {
        font-size: 1.8rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-title {
        font-size: 3rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-content {
        width: 48%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1920px) {
    .section-content {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Landscape orientation fixes */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .profile-image-container {
        width: 150px;
        height: 150px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    .ticker-item:hover,
    .project-card:hover,
    .timeline-content:hover {
        transform: none;
    }

    .back-to-top {
        width: 55px;
        height: 55px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {
    .nav-logo-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ===========================
   ANIMATED LOGO STYLES
   =========================== */
.animated-logo-container {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    cursor: pointer;
}

.animated-logo {
    width: 200px;
    height: auto;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFloat 4s ease-in-out infinite;
}

.animated-logo-container:hover .animated-logo {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 0 40px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 80px rgba(150, 150, 150, 0.4));
}

/* Floating animation */
@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Glow effect behind logo */
.logo-glow {
    position: absolute;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.animated-logo-container:hover .logo-glow {
    animation: glowPulseHover 1.5s ease-in-out infinite;
}

@keyframes glowPulseHover {

    0%,
    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.6);
        opacity: 1;
    }
}

/* Rotating rings */
.logo-rings {
    position: absolute;
    width: 280px;
    height: 280px;
    z-index: 5;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    animation: ringRotate 20s linear infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-style: dashed;
    animation: ringRotate 15s linear infinite reverse;
}

.ring-3 {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border: 2px solid rgba(255, 255, 255, 0.05);
    animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

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

.animated-logo-container:hover .ring {
    border-color: rgba(255, 255, 255, 0.25);
}

.animated-logo-container:hover .ring-3 {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Particle container */
.logo-particles {
    position: absolute;
    width: 300px;
    height: 300px;
    z-index: 2;
    pointer-events: none;
}

.logo-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    opacity: 0;
}

/* Hint text */
.logo-hint {
    font-size: 0.85rem;
    color: #666;
    opacity: 0.7;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.animated-logo-container:hover .logo-hint {
    opacity: 1;
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .animated-logo {
        width: 160px;
    }

    .logo-rings {
        width: 220px;
        height: 220px;
    }

    .logo-glow {
        width: 120px;
        height: 120px;
    }

    .logo-hint {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .animated-logo {
        width: 140px;
    }

    .logo-rings {
        width: 180px;
        height: 180px;
    }

    .logo-glow {
        width: 100px;
        height: 100px;
    }
}

/* GitHub Button Specific Styles */
.github-button {
    margin-top: 0;
}

.github-button svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.github-button:hover svg {
    transform: scale(1.1) rotate(360deg);
}

.github-button .button-text {
    margin: 0;
}