:root {
    --color-bg: #050508;
    --color-surface: #0f1016;
    --color-primary: #4169E1;
    /* Royal Blue */
    --color-primary-glow: rgba(65, 105, 225, 0.5);
    --color-secondary: #8B0000;
    /* Deep Red */
    --color-secondary-glow: rgba(139, 0, 0, 0.5);
    --color-text: #ffffff;
    --color-text-muted: #a0a0b0;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
}

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

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

/* Background Effects */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.6;
    animation: float 10s infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--color-primary-glow);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: rgba(139, 0, 0, 0.6);
    /* Stronger Red */
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
    opacity: 0.8;
    /* More visible */
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(var(--glass-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--glass-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    z-index: -1;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 50px);
    }
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, #ff4d4d, #4d94ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    /* display: inline-block; removed to use standard block centering */
    /* left: 50%; removed */
    /* transform: translateX(-50%); removed */
    background: linear-gradient(135deg, #ff4d4d, #4d94ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 100%;
    /* Ensure it takes full width for text-align to work */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #ff4d4d, #4d94ff);
    /* Gradient underline too */
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--color-primary-glow);
    background: #3658b5;
}

.btn-secondary {
    background: var(--color-secondary);
    color: white;
    box-shadow: 0 4px 15px var(--color-secondary-glow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: #6e0000;
}

.btn-glass {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Glass Components */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 98%;
    /* Increased from 95% */
    max-width: 1400px;
    /* Increased from 1200px */
    padding: 15px 0;
    border-radius: 50px;

    /* Animated Gradient */
    background: linear-gradient(90deg,
            rgba(139, 0, 0, 0.5),
            /* Dark Red */
            rgba(65, 105, 225, 0.5),
            /* Royal Blue */
            rgba(0, 100, 0, 0.5),
            /* Dark Green */
            rgba(218, 165, 32, 0.5),
            /* Goldenrod/Yellow */
            rgba(139, 0, 0, 0.5)
            /* Loop back to Red */
        );
    background-size: 400% 100%;
    animation: headerGlow 7s ease-in-out infinite alternate;

    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

@keyframes headerGlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Header & Nav */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.6rem;
    /* Increased size (approx +2 steps) */
}

.logo img {
    height: 60px;
    /* Increased size */
    width: auto;
}

.logo span {
    background: linear-gradient(135deg, #ff4d4d, #4d94ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 2px rgba(255, 77, 77, 0.3));
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
    /* Increased size */
    transition: var(--transition);
}

.nav-links a:hover {
    color: white;
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 40px;
    /* Reduced from 100px to 60px */
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
}

#about {
    padding-top: 40px;
    /* Reduced from 100px to 60px */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin: 20px 0 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-visual {
    position: relative;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns */
    gap: 30px;
    /* Increased gap for visibility */
    perspective: 1000px;
    justify-content: center;
    /* Center the grid in its container */
    width: 100%;
    /* Ensure it takes full width */
}

/* Remove floating-container from parent if we animate children, or keep it.
   User said "not animated". Let's apply float to the cards themselves for independent movement
   which looks more "floating" than a static block moving. */
.hero-card {
    position: relative;
    width: auto !important;
    /* Auto width to fill grid cell */
    min-width: 0;
    /* Allow shrinking below content size if needed */
    height: 140px !important;
    /* Keep height or reduce slightly */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-left: 1px solid rgba(139, 0, 0, 0.3);
    /* Red tint border */
    border-top: 1px solid rgba(139, 0, 0, 0.3);
    padding: 10px;
    /* Reduced padding */
    animation: sequentialPulse 5s infinite ease-in-out;
    /* Gentle pulse */
}

@keyframes sequentialPulse {
    0% {
        transform: scale(1);
        box-shadow: var(--glass-shadow);
        border-color: rgba(139, 0, 0, 0.3);
    }

    20% {
        transform: scale(1.05);
        box-shadow: 0 10px 30px rgba(139, 0, 0, 0.2);
        border-color: rgba(139, 0, 0, 0.6);
    }

    40% {
        transform: scale(1);
        box-shadow: var(--glass-shadow);
        border-color: rgba(139, 0, 0, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: var(--glass-shadow);
        border-color: rgba(139, 0, 0, 0.3);
    }
}

/* Stagger animations */
.hero-card:nth-child(1) {
    animation-delay: 0s;
}

.hero-card:nth-child(2) {
    animation-delay: 1s;
}

.hero-card:nth-child(3) {
    animation-delay: 2s;
}

.hero-card:nth-child(4) {
    animation-delay: 3s;
}


/* Stagger animations or positions if desired, but grid handles layout */



/* Card Content Scaling */
.card-icon {
    font-size: 1.8rem;
    /* Reduced from 2.5rem */
    margin-bottom: 10px;
    /* Reduced margin */
}

.hero-card h3 {
    font-size: 1.1rem;
    /* Reduced from default */
    margin-bottom: 5px;
}

.hero-card p {
    font-size: 0.85rem;
    /* Small, legible text */
    margin: 0;
    line-height: 1.3;
    text-align: center;
    /* Centered text */
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
    /* Stretch to match height */
}

.about-content p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    text-align: justify;
}



.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.feature-list i {
    background: linear-gradient(135deg, var(--color-secondary), #ff4d4d);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    width: 20px;
    text-align: center;
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    height: 100%;
    /* Take full height of parent */
    /* Center content vertically */
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 215, 0, 0.05),
            /* Very Light Gold - Gentler */
            rgba(218, 165, 32, 0.08),
            /* Gentler Goldenrod */
            rgba(184, 134, 11, 0.05),
            /* Gentler Dark Goldenrod */
            transparent);
    transform: skewX(-20deg);
    animation: goldenWipe 6s infinite linear;
    /* Slower, gentler */
    pointer-events: none;
}

@keyframes goldenWipe {
    0% {
        left: -150%;
    }

    40%,
    100% {
        left: 150%;
    }
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    /* Golden Shine Effect */
    background: linear-gradient(90deg,
            #ffd700,
            /* Gold */
            #ffec8b,
            /* Light Goldenrod */
            #fffacd,
            /* Lemon Chiffon (Bright) */
            #ffd700
            /* Gold */
        );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.stat-number {
    position: relative;
    /* Need relative for sparkles */
}

/* Sparkle Effect REMOVED */
.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    /* Golden Shine Effect remains */
    background: linear-gradient(90deg,
            #ffd700,
            /* Gold */
            #ffec8b,
            /* Light Goldenrod */
            #fffacd,
            /* Lemon Chiffon (Bright) */
            #ffd700
            /* Gold */
        );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.stat-number-green {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    /* Green Shine Effect */
    background: linear-gradient(90deg,
            #006400,
            /* Dark Green */
            #32CD32,
            /* Lime Green */
            #90EE90,
            /* Light Green */
            #006400
            /* Dark Green */
        );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 3s linear infinite;
    filter: drop-shadow(0 0 5px rgba(50, 205, 50, 0.3));
}

.stat-label {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-image-placeholder {
    height: 250px;
    width: 100%;
    flex-shrink: 0;
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .project-card {
        flex-direction: row;
        align-items: stretch;
        height: 500px;
        /* Fixed height for uniformity */
    }

    .project-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    .project-image-placeholder {
        width: 50%;
        height: 100%;
        object-fit: contain;
        background: black;
    }

    .project-image {
        width: 50%;
        height: 100%;
        object-fit: contain;
        background: #ffffff;
    }

    .project-content {
        width: 50%;
        text-align: left;
        justify-content: center;
        padding: 40px;
    }
}

.gradient-1 {
    background: linear-gradient(45deg, #1a2a6c, #b21f1f, #fdbb2d);
    opacity: 0.5;
}

.gradient-2 {
    background: linear-gradient(45deg, #00416a, #e4e5e6);
    opacity: 0.5;
}

.gradient-3 {
    background: linear-gradient(45deg, #2b5876, #4e4376);
    opacity: 0.5;
}

.project-content h3 {
    margin-bottom: 10px;
}

.project-content p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    text-align: justify;
}

.project-breakdown p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.project-breakdown strong {
    background: linear-gradient(90deg, #4169E1, #ff4d4d, #4169E1);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShine 5s linear infinite;
    font-weight: 700;
}

@keyframes textShine {
    to {
        background-position: 200% center;
    }
}

.project-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    /* text-align: center; Removed to allow media query to control alignment */
}

.btn-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info p {
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition);
}

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

.glass-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    /* Prevent shrinking below original size */
}

.glass-footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    background: linear-gradient(90deg,
            rgba(65, 105, 225, 0.1),
            /* Blue tinge */
            rgba(5, 5, 8, 0.9),
            /* Dark center */
            rgba(139, 0, 0, 0.1)
            /* Red tinge */
        );
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 50px;
    /* Increased from 40px */
    width: auto;
}

.footer-content p {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 1.1rem;
    /* Increased size */
}

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

.social-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 1.3rem;
    /* Increased size */
}

.social-links a:hover {
    color: var(--color-primary);
}

.social-links i {
    margin-right: 8px;
}

.social-links .fa-linkedin-in,
.social-links .fa-phone {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
}

.social-links .fa-linkedin-in {
    background-color: #0077b5;
    color: white;
}

.social-links .fa-phone {
    background-color: #4169E1;
    color: white;
}

/* Animations */


/* @keyframes fadeInUp ... REMOVED */

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
        filter: invert(1);
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
    }

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

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .glass-panel {
        margin-top: 30px;
    }
}

/* Shooting Laser Effect */
.laser-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.laser {
    position: absolute;
    width: 250px;
    /* Increased from 150px */
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    opacity: 0;
    transform: rotate(45deg);
    animation: shoot 5s linear infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes shoot {
    0% {
        transform: translate(-200px, -200px) rotate(45deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translate(120vw, 120vh) rotate(45deg);
        opacity: 0;
    }
}

/* Laser Variations for Hero and About */
.laser-1 {
    top: -10%;
    left: 0;
    animation-duration: 4s;
    animation-delay: 0s;
    /* Blue gradient */
    background: linear-gradient(90deg, transparent, rgba(65, 105, 225, 0.6), transparent);
}

.laser-2 {
    top: 10%;
    left: -10%;
    animation-duration: 6s;
    animation-delay: 2s;
    /* Red gradient */
    background: linear-gradient(90deg, transparent, rgba(139, 0, 0, 0.6), transparent);
}

.laser-3 {
    top: -20%;
    left: 10%;
    animation-duration: 3s;
    animation-delay: 1.5s;
    /* Blue/Red Mixed */
    background: linear-gradient(90deg, transparent, rgba(65, 105, 225, 0.5), rgba(139, 0, 0, 0.5), transparent);
}

.laser-4 {
    top: 30%;
    left: -20%;
    animation-duration: 7s;
    animation-delay: 3s;
    /* Cyan/White subtle */
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), rgba(65, 105, 225, 0.3), transparent);
}


/* Process & Tech Stack Section */
.process-tech-section {
    padding: 20px 0 60px;
    /* Reduced padding significantly */
    position: relative;
    overflow: visible;
}

/* Process Pipeline */
.process-pipeline {
    margin-bottom: 80px;
    /* Reduced from 120px */
    text-align: center;
}

.process-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    /* Increased gap */
    margin-top: 40px;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
    width: 140px;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    /* Reduced from 1.8rem to ensure fit */
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    color: white;
    overflow: hidden;
    /* Changed to hidden to contain effects properly, but size reduction fixes clip */
    padding: 0;
    /* Ensure no padding interferes */
}

/* Fix for specific icon adjustments */
.step-icon-wrapper i {
    display: flex;
    /* Better for centering than inline-block */
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff4d4d, #4d94ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.process-step:hover .step-icon-wrapper {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(65, 105, 225, 0.4);
    background: rgba(65, 105, 225, 0.1);
}

.process-step h4 {
    color: var(--color-text);
    font-size: 1.1rem;
    margin: 0;
}

.process-connector {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(65, 105, 225, 0.1),
            rgba(255, 77, 77, 0.5),
            rgba(65, 105, 225, 0.1));
    max-width: 80px;
    min-width: 40px;
    position: relative;
    top: -20px;
}

.process-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(65, 105, 225, 0.4);
    /* Blue tip */
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Tech Stack Orbit */
.tech-stack-display {
    text-align: center;
    position: relative;
}

.orbit-container {
    position: relative;
    width: 100%;
    height: 500px;
    /* Increased height for 6 items */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.orbit-center-glow {
    position: absolute;
    width: 280px;
    /* Sized to fit image */
    height: 280px;
    background: url('../assets/tech-core.png') no-repeat center center;
    background-size: contain;
    z-index: 1;
    /* Blend mode magic: Screen/Lighten makes black transparent */
    mix-blend-mode: screen;
    /* Mask the edges so it's a perfect soft circle, no square borders */
    -webkit-mask-image: radial-gradient(circle, black 60%, transparent 100%);
    mask-image: radial-gradient(circle, black 60%, transparent 100%);
    filter: drop-shadow(0 0 20px rgba(65, 105, 225, 0.6));
    animation: corePulse 4s ease-in-out infinite alternate;
}

@keyframes corePulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.05);
        opacity: 1;
        filter: drop-shadow(0 0 40px rgba(255, 77, 77, 0.5));
    }
}

.tech-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    /* Strict dimensions */
    width: 200px !important;
    /* Increased slightly to handle longer text */
    height: 120px !important;
    min-width: 200px !important;
    min-height: 120px !important;
    box-sizing: border-box !important;

    /* Center content */
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.1) !important;
    /* Override float */
    z-index: 100;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.tech-icon {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.tech-item span {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.2;
}

.tech-item:hover span {
    color: white;
}

/* Smoother Float Animation */
@keyframes smoothFloat {

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

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

/* 6-Point Hexagonal Layout */

/* 1. Top Left */
.tech-pos-1 {
    top: 5%;
    left: 15%;
    animation: smoothFloat 5s ease-in-out infinite;
    animation-delay: 0s;
}

.tech-pos-1 .tech-icon {
    color: #ffeb3b;
}

/* Articulate Yellow */

/* 2. Top Right */
.tech-pos-2 {
    top: 5%;
    right: 15%;
    animation: smoothFloat 5.5s ease-in-out infinite;
    animation-delay: 1s;
}

.tech-pos-2 .tech-icon {
    color: #ff4d4d;
}

/* Adobe Red */

/* 3. Middle Left */
.tech-pos-3 {
    top: 40%;
    left: 5%;
    animation: smoothFloat 6s ease-in-out infinite;
    animation-delay: 2s;
}

.tech-pos-3 .tech-icon {
    color: #00a4ef;
}

/* MS Blue */

/* 4. Middle Right */
.tech-pos-4 {
    top: 40%;
    right: 5%;
    animation: smoothFloat 6.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.tech-pos-4 .tech-icon {
    color: #32CD32;
}

/* LMS Green */

/* 5. Bottom Left */
.tech-pos-5 {
    bottom: 5%;
    left: 20%;
    animation: smoothFloat 7s ease-in-out infinite;
    animation-delay: 1.5s;
}

.tech-pos-5 .tech-icon {
    color: #00e5ff;
}

/* Synthesia Cyan */

/* 6. Bottom Right */
.tech-pos-6 {
    bottom: 5%;
    right: 20%;
    animation: smoothFloat 7.5s ease-in-out infinite;
    animation-delay: 2.5s;
}

.tech-pos-6 .tech-icon {
    color: #ba68c8;
}

/* AI Purple */


/* Responsive adjustments */
@media (max-width: 900px) {
    .process-connector {
        display: none;
    }

    .orbit-container {
        height: auto;
        flex-wrap: wrap;
        gap: 15px;
        padding: 40px 0;
    }

    .tech-item {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        animation: none !important;
        width: 45%;
    }
}

/* Mobile Optimization */
@media (max-width: 768px) {

    /* Global */
    .section {
        padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Navigation */
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
        background: transparent;
        border: none;
        padding: 10px;
    }

    .menu-toggle span {
        display: block;
        width: 30px;
        height: 3px;
        margin: 6px;
        background: linear-gradient(90deg, #ff4d4d, #4d94ff);
        /* Brand Gradient */
        border-radius: 3px;
        transition: var(--transition);
        box-shadow: 0 0 10px rgba(65, 105, 225, 0.3);
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        display: none;
        /* Hidden by default on mobile */
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(5, 5, 8, 0.95);
        backdrop-filter: blur(20px);
        padding: 30px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        gap: 20px;
        text-align: center;
        animation: slideDown 0.3s ease forwards;
        z-index: 999;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

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

    /* Hero Section */
    .hero-section {
        padding-top: 140px;
        /* Adjust for fixed header */
        padding-bottom: 40px;
        min-height: auto;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .hero-text {
        text-align: center;
        order: 1;
    }

    .hero-visual {
        order: 2;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-cards-container {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 grid on mobile */
        width: 100%;
        max-width: 400px;
        /* Constrain width */
        margin: 0 auto;
    }

    /* Process Section */
    .process-flow {
        flex-direction: column;
        gap: 30px;
    }

    .process-connector {
        width: 2px !important;
        min-width: 2px !important;
        /* Force width */
        height: 30px;
        margin: 0 auto;
        display: block !important;
        background: linear-gradient(to bottom, #ff4d4d, #4d94ff);
        border: none;
        opacity: 0.8;
        transform: none !important;
        /* Prevent any accidental scaling */
        flex-basis: auto !important;
        /* Prevent flex stretching */
    }

    /* Mobile Arrow Head */
    .process-connector::after {
        content: '';
        position: absolute;
        bottom: 0;
        top: auto;
        /* Reset desktop positioning */
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-top: 8px solid #4d94ff;
        /* Blue tip */
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: none;
    }

    /* Tech Stack */
    .orbit-container {
        height: auto;
        padding: 40px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        transform: none;
        /* remove scale */
    }

    .orbit-center-glow {
        display: none;
        /* Hide center glow on mobile */
    }

    .tech-item {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 140px !important;
        /* Fixed width for better grid */
        height: auto !important;
        min-width: 0 !important;
        animation: none !important;
        transform: none !important;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tech-item:hover {
        transform: translateY(-5px) !important;
    }

    /* Project Images Fix */
    .project-image {
        height: auto;
        /* max-height removed to prevent letterboxing */
        object-fit: contain;
        background: transparent;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 40px;
    }

    .glass-panel {
        margin-top: 20px;
    }

    /* Contact Section */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .contact-details {
        display: inline-block;
        text-align: left;
    }

    .contact-item {
        justify-content: flex-start;
        /* Keep icons aligned */
    }
}

@media (max-width: 480px) {
    .hero-cards-container {
        grid-template-columns: 1fr;
        /* 1 column on very small screens */
    }

    h1 {
        font-size: 2rem;
    }

    .tech-item {
        width: 100% !important;
        max-width: 200px;
    }
}