/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --accent: #ec4899;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --dark-tertiary: #334155;
    --light: #f8fafc;
    --success: #10b981;
    --warning: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Animated Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
                var(--dark);
}

.data-flow {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
    animation: dataFlow 3s linear infinite;
}

.data-flow:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.data-flow:nth-child(2) {
    left: 50%;
    animation-delay: 1s;
}

.data-flow:nth-child(3) {
    left: 80%;
    animation-delay: 2s;
}

@keyframes dataFlow {
    0% {
        top: -100px;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.logo i {
    color: var(--primary);
    font-size: 2rem;
}

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

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

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: 0.3s;
}

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

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--success);
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch {
    position: relative;
}

.glitch:hover {
    animation: glitch 0.3s infinite;
}

@keyframes glitch {
    0% {
        text-shadow: 2px 2px var(--primary), -2px -2px var(--accent);
    }
    25% {
        text-shadow: -2px -2px var(--primary), 2px 2px var(--accent);
    }
    50% {
        text-shadow: 2px -2px var(--primary), -2px 2px var(--accent);
    }
    75% {
        text-shadow: -2px 2px var(--primary), 2px -2px var(--accent);
    }
    100% {
        text-shadow: 2px 2px var(--primary), -2px -2px var(--accent);
    }
}

.typewriter {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem 0;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

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

.automation-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    backdrop-filter: blur(10px);
}

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

.front {
    transform: translateZ(100px);
}

.back {
    transform: rotateY(180deg) translateZ(100px);
}

.left {
    transform: rotateY(-90deg) translateZ(100px);
}

.right {
    transform: rotateY(90deg) translateZ(100px);
}

.top {
    transform: rotateX(90deg) translateZ(100px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(100px);
}

.orbit-ring {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    animation: orbit 10s linear infinite;
}

.orbit-ring.delay-1 {
    width: 400px;
    height: 400px;
    animation-delay: -3.33s;
    border-color: rgba(139, 92, 246, 0.3);
}

.orbit-ring.delay-2 {
    width: 500px;
    height: 500px;
    animation-delay: -6.66s;
    border-color: rgba(236, 72, 153, 0.3);
}

@keyframes orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* Automation Lab */
.automation-lab {
    padding: 6rem 2rem;
    background: var(--dark-secondary);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.title-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-decoration {
    height: 3px;
    width: 100px;
    background: var(--gradient-primary);
    border-radius: 10px;
}

.section-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.lab-container {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
}

.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.process-node {
    flex: 1;
    min-width: 200px;
    background: var(--dark-tertiary);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 2rem 1rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.process-node:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.process-node.active {
    border-color: var(--success);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    animation: nodeActive 1s ease-in-out;
}

@keyframes nodeActive {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.node-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.input-node .node-icon {
    color: var(--warning);
}

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

.output-node .node-icon {
    color: var(--success);
}

.process-node h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.process-node p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.node-metric {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    font-weight: 700;
    color: var(--primary);
}

.flow-arrow {
    position: relative;
    width: 100px;
    height: 20px;
}

.flow-arrow svg {
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    top: 50%;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateY(-50%);
    opacity: 0;
}

.particle.animate {
    animation: flowParticle 2s ease-in-out;
}

@keyframes flowParticle {
    0% {
        left: 0;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

.processing-indicator {
    margin-top: 1rem;
    height: 4px;
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.processing-bar {
    height: 100%;
    background: var(--gradient-primary);
    width: 0;
    transition: width 2s ease-in-out;
}

.processing-bar.active {
    width: 100%;
}

.play-automation-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.play-automation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.automation-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s;
}

.automation-results.show {
    opacity: 1;
    transform: translateY(0);
}

.result-card {
    background: var(--dark-tertiary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.result-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.result-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.result-card h4 {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tech Stack */
.tech-stack {
    padding: 6rem 2rem;
    background: var(--dark);
}

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

.tech-category {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.tech-category:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.tech-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.tech-category h3 i {
    color: var(--primary);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    padding: 0.5rem 1rem;
    background: var(--dark-tertiary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s;
    cursor: default;
}

.tech-badge:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    transform: scale(1.05);
}

.tech-badge.python {
    border-color: #3776ab;
    color: #3776ab;
}

/* Projects */
.projects {
    padding: 6rem 2rem;
    background: var(--dark-secondary);
}

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

.project-card {
    background: var(--dark);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.3);
    border-color: var(--primary);
}

.project-image {
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-overlay {
    color: white;
    opacity: 0.8;
    transition: all 0.3s;
}

.project-svg-icon {
    width: 3rem;
    height: 3rem;
    filter: brightness(0) invert(1); /* Make SVG white */
    opacity: 0.9;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

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

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    font-size: 0.75rem;
    color: var(--primary);
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.project-content p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

.metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.metric i {
    color: var(--success);
}

.project-btn {
    width: 100%;
    padding: 0.8rem;
    background: transparent;
    border: 2px solid var(--primary);
    border-radius: 10px;
    color: var(--light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.project-btn:hover {
    background: var(--primary);
}

/* Efficiency Timeline */
.efficiency-timeline {
    padding: 6rem 2rem;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

/* Timeline Decorations */
.timeline-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.decoration-item {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.15;
    filter: brightness(0) invert(1);
}

.decoration-item.anim-1 {
    top: 10%;
    left: 5%;
    animation: float-diagonal 20s ease-in-out infinite;
}

.decoration-item.anim-2 {
    top: 20%;
    right: 10%;
    width: 50px;
    height: 50px;
    animation: float-vertical 15s ease-in-out infinite 2s;
}

.decoration-item.anim-3 {
    top: 40%;
    left: 8%;
    width: 70px;
    height: 70px;
    animation: float-horizontal 18s ease-in-out infinite 1s;
}

.decoration-item.anim-4 {
    bottom: 30%;
    right: 5%;
    width: 55px;
    height: 55px;
    animation: float-circular 25s linear infinite;
}

.decoration-item.anim-5 {
    top: 60%;
    left: 15%;
    width: 65px;
    height: 65px;
    animation: float-diagonal 22s ease-in-out infinite 3s;
}

.decoration-item.anim-6 {
    bottom: 15%;
    right: 15%;
    width: 60px;
    height: 60px;
    animation: float-vertical 17s ease-in-out infinite 1.5s;
}

.decoration-item.anim-7 {
    top: 70%;
    right: 8%;
    width: 50px;
    height: 50px;
    animation: float-horizontal 20s ease-in-out infinite 2.5s;
}

.decoration-item.anim-8 {
    top: 35%;
    right: 20%;
    width: 45px;
    height: 45px;
    animation: float-circular 30s linear infinite 4s;
}

.decoration-item.anim-9 {
    bottom: 40%;
    left: 12%;
    width: 58px;
    height: 58px;
    animation: float-diagonal 24s ease-in-out infinite 1.5s;
}

.decoration-item.anim-10 {
    top: 50%;
    right: 25%;
    width: 52px;
    height: 52px;
    animation: float-vertical 19s ease-in-out infinite 3.5s;
}

.decoration-item.anim-11 {
    bottom: 25%;
    left: 20%;
    width: 48px;
    height: 48px;
    animation: float-horizontal 21s ease-in-out infinite 2s;
}

.decoration-item.anim-12 {
    top: 80%;
    left: 5%;
    width: 62px;
    height: 62px;
    animation: float-circular 28s linear infinite 3s;
}

@keyframes float-diagonal {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(60px, 0) rotate(180deg);
    }
    75% {
        transform: translate(30px, 30px) rotate(270deg);
    }
}

@keyframes float-vertical {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-40px) rotate(180deg);
    }
}

@keyframes float-horizontal {
    0%, 100% {
        transform: translateX(0) rotate(0deg);
    }
    50% {
        transform: translateX(40px) rotate(180deg);
    }
}

@keyframes float-circular {
    0% {
        transform: rotate(0deg) translateX(40px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(40px) rotate(-360deg);
    }
}

.timeline {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0rem;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
    padding: 2rem 0;
}

.timeline-item:first-child {
    padding-top: 0;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--dark);
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    width: 75%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.timeline-year {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.timeline-stat {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
}

/* Current Position - Schneider Electric */
.timeline-current {
    position: relative;
    width: 180%;
    margin-left: -30%;
}
.timeline-current .timeline-content {
    width: 65%;
    border: 2px solid rgba(99, 102, 241, 0.4);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.2);
}

.timeline-current .timeline-content:hover {
    transform: scale(1.12);
}

.timeline-current .timeline-marker {
    width: 26px;
    height: 26px;
    background: var(--gradient-primary);
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
    animation: pulse-current 2s ease-in-out infinite;
    left:44.5%
}

@keyframes pulse-current {
    0%, 100% {
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.6);
    }
    50% {
        box-shadow: 0 0 35px rgba(99, 102, 241, 0.8);
    }
}

.company-logo {
    position: absolute;
    top: 40px;
    right: 60px;
    width: 200px;
    height: auto;
    opacity: 1;
    transition: opacity 0.3s;
}

.timeline-current .timeline-content:hover .company-logo {
    opacity: 1;
}

.timeline-current .timeline-year {
    font-size: 2.2rem;
}

.timeline-current .timeline-content h3 {
    font-size: 1.5rem;
    padding-right: 130px;
}

.timeline-current .timeline-stat {
    background: rgba(99, 102, 241, 0.2);
    padding: 0.6rem 1.2rem;
    font-size: 1.05rem;
}

/* Special Degree Timeline Item with Golden Aura */
.timeline-degree {
    position: relative;
    padding: 3rem 0;
}

.timeline-degree::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320%;
    height: 240%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 40%);
    border-radius: 15px;
    animation: golden-pulse 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.timeline-degree .timeline-content {
    border: 2px solid rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.2), 
                0 0 60px rgba(255, 215, 0, 0.1);
    position: relative;
}

.timeline-degree .timeline-content:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3), 
                0 0 80px rgba(255, 215, 0, 0.15);
}

.timeline-degree .timeline-marker {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    width: 24px;
    height: 24px;
}

@keyframes golden-pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Graduate and Degree Icons */
.degree-graduate-icon,
.degree-paper-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.3;
    filter: brightness(0) saturate(100%) invert(76%) sepia(89%) saturate(1450%) hue-rotate(359deg) brightness(104%) contrast(104%);
    animation: float-gentle 4s ease-in-out infinite;
}

.degree-graduate-icon {
    top: -35px;
    right: -35px;
    animation-delay: 0s;
}

.degree-paper-icon {
    bottom: -35px;
    left: -35px;
    animation-delay: 2s;
}

.timeline-degree:nth-child(even) .degree-graduate-icon {
    right: auto;
    left: -35px;
}

.timeline-degree:nth-child(even) .degree-paper-icon {
    left: auto;
    right: -35px;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Special Travel Timeline Item with Green Aura */
.timeline-travel {
    position: relative;
    padding: 3rem 0;
}

.timeline-travel::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320%;
    height: 240%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 40%);
    border-radius: 15px;
    animation: green-pulse 3s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

.timeline-travel .timeline-content {
    border: 2px solid rgba(16, 185, 129, 0.4);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.2), 
                0 0 60px rgba(16, 185, 129, 0.1);
    position: relative;
}

.timeline-travel .timeline-content:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.3), 
                0 0 80px rgba(16, 185, 129, 0.15);
}

.timeline-travel .timeline-marker {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
    width: 24px;
    height: 24px;
}

@keyframes green-pulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Travel Icons - Plane and Suitcase */
.travel-plane-icon,
.travel-suitcase-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.3;
    filter: brightness(0) saturate(100%) invert(71%) sepia(56%) saturate(464%) hue-rotate(94deg) brightness(95%) contrast(89%);
}

.travel-plane-icon {
    top: -35px;
    right: -35px;
    animation: fly-around 8s ease-in-out infinite;
}

.travel-suitcase-icon {
    bottom: -35px;
    left: -35px;
    animation: suitcase-bounce 3s ease-in-out infinite;
}

.timeline-travel:nth-child(even) .travel-plane-icon {
    right: auto;
    left: -35px;
}

.timeline-travel:nth-child(even) .travel-suitcase-icon {
    left: auto;
    right: -35px;
}

@keyframes fly-around {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, -15px) rotate(15deg);
    }
    50% {
        transform: translate(0, -20px) rotate(0deg);
    }
    75% {
        transform: translate(-15px, -15px) rotate(-15deg);
    }
}

@keyframes suitcase-bounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-12px) rotate(-3deg);
    }
}

/* Philosophy */
.philosophy {
    padding: 6rem 2rem;
    background: var(--dark-secondary);
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-icon {
    font-size: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.philosophy-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

blockquote {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #94a3b8;
    font-style: italic;
    padding: 2rem;
    border-left: 4px solid var(--primary);
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    margin-bottom: 3rem;
}

.philosophy-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.principle {
    text-align: center;
}

.principle i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.principle h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.principle p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Contact */
.contact {
    padding: 6rem 2rem;
    background: var(--dark);
}

.contact-subtitle {
    text-align: center;
    color: #94a3b8;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-content: start;
}

.contact-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.contact-card a {
    color: var(--light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.9rem;
}

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

.contact-form-container {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

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

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--dark-tertiary);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

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

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #94a3b8;
    transition: all 0.3s;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -0.75rem;
    left: 0.75rem;
    font-size: 0.75rem;
    background: var(--dark);
    padding: 0 0.5rem;
    color: var(--primary);
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

/* Footer */
.footer {
    background: var(--dark-secondary);
    padding: 3rem 2rem 1rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand i {
    font-size: 2rem;
    color: var(--primary);
}

.footer-brand span {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-quote {
    display: flex;
    align-items: center;
}

.footer-quote p {
    font-style: italic;
    color: #94a3b8;
}

.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50%;
    color: var(--primary);
    transition: all 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom i {
    color: var(--accent);
}

/* Project Details Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--dark-secondary);
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

/* Custom Scrollbar for Project Modals */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), rgba(99, 102, 241, 0.8));
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.9), var(--primary));
}

.modal-content::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox scrollbar styling */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(99, 102, 241, 0.1);
}

.project-modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 1.5rem 2rem 2rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h3 i {
    font-size: 1rem;
}

.modal-section p {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
}

.modal-section ul {
    color: #cbd5e1;
    line-height: 1.6;
    margin: 0;
    padding-left: 1.5rem;
}

.modal-section li {
    margin-bottom: 0.5rem;
}

.modal-contact {
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    text-align: center;
}

.modal-contact p {
    margin-bottom: 1rem;
}

.modal-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

.modal-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

@media (max-width: 640px) {
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-visual {
        height: 300px;
    }

    .automation-cube {
        width: 150px;
        height: 150px;
    }

    .cube-face {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }

    .front,
    .back,
    .left,
    .right,
    .top,
    .bottom {
        transform: translateZ(75px);
    }

    .back {
        transform: rotateY(180deg) translateZ(75px);
    }

    .left {
        transform: rotateY(-90deg) translateZ(75px);
    }

    .right {
        transform: rotateY(90deg) translateZ(75px);
    }

    .top {
        transform: rotateX(90deg) translateZ(75px);
    }

    .bottom {
        transform: rotateX(-90deg) translateZ(75px);
    }

    .process-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        justify-content: flex-end !important;
    }

    .timeline-marker {
        left: 0;
        transform: translateX(-50%);
    }

    .timeline-content {
        width: calc(100% - 40px);
        margin-left: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 2rem;
    }

    .typewriter {
        font-size: 1.2rem;
    }

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

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

    .footer-social {
        justify-content: center;
    }
}

/* Gallery Feature Section */
.gallery-feature {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.gallery-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.gallery-content {
    animation: fadeInLeft 0.8s ease-out;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.3);
    margin-bottom: 1.5rem;
}

.gallery-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.gallery-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.feature-item i {
    color: var(--primary);
}

.gallery-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.gallery-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.gallery-cta i {
    transition: transform 0.3s;
}

.gallery-cta:hover i {
    transform: translateX(5px);
}

.gallery-visual {
    position: relative;
    animation: fadeInRight 0.8s ease-out;
}

.photo-grid-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    perspective: 1000px;
}

.preview-card {
    aspect-ratio: 1;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    border: 2px solid rgba(99, 102, 241, 0.3);
    animation: float 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.preview-card.card-1 {
    animation-delay: 0s;
}

.preview-card.card-2 {
    animation-delay: 0.2s;
}

.preview-card.card-3 {
    animation-delay: 0.4s;
}

.preview-card.card-4 {
    animation-delay: 0.6s;
}


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

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .gallery-preview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-content h2 {
        font-size: 2rem;
    }
}

/* Weather Demo Section */
.weather-demo {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--dark-secondary) 0%, var(--dark) 100%);
    position: relative;
}

.weather-header {
    text-align: center;
    margin-bottom: 3rem;
}

.weather-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.weather-description {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 1rem;
}

.api-details-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.api-details-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.weather-search {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-box input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.city-suggestions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.city-tag {
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.city-tag:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

.weather-content {
    max-width: 900px;
    margin: 0 auto;
}

.weather-loading {
    text-align: center;
    padding: 3rem;
}

.weather-loading .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(99, 102, 241, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.weather-data {
    animation: fadeIn 0.5s ease-out;
}

.weather-main-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.current-weather {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.weather-icon-display {
    font-size: 4rem;
    color: var(--primary);
}

.weather-info h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.temperature {
    font-size: 3rem;
    font-weight: bold;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.weather-condition {
    font-size: 1.2rem;
    color: #cbd5e1;
    text-transform: capitalize;
}

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

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 15px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.detail-label {
    font-size: 0.9rem;
    color: #94a3b8;
}

.detail-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light);
}

.weather-ai-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.ai-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.card-header i {
    font-size: 1.3rem;
}

.card-header h4 {
    font-size: 1.1rem;
    color: var(--light);
}

.card-content {
    color: #cbd5e1;
    line-height: 1.8;
}

.card-content ul {
    list-style: none;
    padding: 0;
}

.card-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
}

.alerts-card {
    border-color: rgba(245, 158, 11, 0.5);
}

.alerts-card .card-header {
    color: var(--warning);
}

.comfort-gauge {
    width: 100%;
    height: 30px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    overflow: hidden;
    margin-bottom: 1rem;
    position: relative;
}

.gauge-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 50px;
    transition: width 0.5s ease-out;
    width: 0%;
}

.comfort-text {
    text-align: center;
    font-weight: 600;
    color: var(--light);
}

.weather-error {
    text-align: center;
    padding: 3rem;
    color: var(--warning);
}

.weather-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .weather-header h2 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .current-weather {
        flex-direction: column;
        text-align: center;
    }
    
    .weather-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .weather-ai-section {
        grid-template-columns: 1fr;
    }
    
    /* Timeline decorations - hide on mobile for better performance */
    .timeline-decorations {
        display: none;
    }
    
    /* Adjust degree icons on mobile */
    .degree-graduate-icon,
    .degree-paper-icon {
        width: 40px;
        height: 40px;
        opacity: 0.2;
    }
    
    .degree-graduate-icon {
        top: -25px;
        right: -25px;
    }
    
    .degree-paper-icon {
        bottom: -25px;
        left: -25px;
    }
    
    .timeline-degree:nth-child(even) .degree-graduate-icon {
        right: -25px;
        left: auto;
    }

    .timeline-degree:nth-child(even) .degree-paper-icon {
        left: -25px;
        right: auto;
    }
    
    /* Adjust travel icons on mobile */
    .travel-plane-icon,
    .travel-suitcase-icon {
        width: 40px;
        height: 40px;
        opacity: 0.2;
    }
    
    .travel-plane-icon {
        top: -25px;
        right: -25px;
    }
    
    .travel-suitcase-icon {
        bottom: -25px;
        left: -25px;
    }
    
    .timeline-travel:nth-child(even) .travel-plane-icon {
        right: -25px;
        left: auto;
    }

    .timeline-travel:nth-child(even) .travel-suitcase-icon {
        left: -25px;
        right: auto;
    }
    
    /* Adjust current position on mobile */
    .timeline-current .timeline-content {
        width: 100%;
        padding: 1.5rem;
        transform: scale(1);
    }
    
    .timeline-current .timeline-content:hover {
        transform: scale(1.02);
    }
    
    .company-logo {
        width: 80px;
        top: 15px;
        right: 15px;
    }
    
    .timeline-current .timeline-content h3 {
        font-size: 1.2rem;
        padding-right: 90px;
    }
}

