/* ============================================
   VARIABLES & THEME CONFIGURATION
   ============================================ */
:root {
    --primary: #3b82f6;
    --secondary: #8b5cf6;
    --dark: #020617;
    --light: #f8fafc;
    --accent: #06b6d4;
    --text-gray: #94a3b8;
    --bg-card: rgba(30, 41, 59, 0.7);
    --border-light: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(2, 6, 23, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(2, 6, 23, 0.5);
    --contact-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
    --contact-border: rgba(255, 255, 255, 0.15);
    --contact-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    --toast-bg: rgba(0,0,0,0.8);
    --toast-color: #fff;
    --shape-1-start: rgba(245, 158, 11, 0.3);
    --shape-1-end: rgba(37, 99, 235, 0);
    --shape-2-start: rgba(37, 99, 235, 0.3);
    --shape-2-end: rgba(37, 99, 235, 0);
    --shape-sm: rgba(255, 255, 255, 0.1);
    --form-devicon-color: rgba(255, 255, 255, 0.12);
    --cta-bg: radial-gradient(circle at center, #1e293b 0%, #020617 100%);
    --specs-bg: rgba(2, 6, 23, 0.5);
}

html[data-theme="light"] {
    --primary: #1d4ed8;
    --secondary: #7c3aed;
    --dark: #ffffff;
    --light: #0f172a;
    --accent: #0891b2;
    --text-gray: #475569;
    --bg-card: #f8fafc;
    --border-light: #cbd5e1;
    --header-bg: rgba(255, 255, 255, 0.95);
    --glass-bg: rgba(248, 250, 252, 0.95);
    --input-bg: #ffffff;
    --contact-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248,250,252, 0.98) 100%);
    --contact-border: rgba(0, 0, 0, 0.06);
    --contact-shadow: 0 10px 20px rgba(2, 6, 23, 0.06);
    --toast-bg: rgba(255,255,255,0.98);
    --toast-color: var(--light);
    --shape-1-start: rgba(245, 158, 11, 0.18);
    --shape-1-end: rgba(37, 99, 235, 0);
    --shape-2-start: rgba(37, 99, 235, 0.18);
    --shape-sm: rgba(0, 0, 0, 0.06);
    --form-devicon-color: rgba(0, 0, 0, 0.08);
    --cta-bg: linear-gradient(circle at center, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
    --specs-bg: #f3f4f6; /* very light gray for timeline background in light theme */
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow: hidden;
}

/* Main content area with horizontal scroll */
main {
    position: relative;
    width: 100vw;
    height: calc(100vh - 80px); /* Account for fixed header */
    margin-top: 80px; /* Space for fixed header */
}

/* Horizontal scroll wrapper */
.horizontal-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.horizontal-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-wrapper::-webkit-scrollbar-track {
    background: var(--glass-bg);
    border-radius: 10px;
}

.horizontal-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.horizontal-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Hide scrollbar for IE, Edge and Firefox and fix layout */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
        overflow-x: hidden;
    }
    main {
        height: auto;
        overflow-y: visible;
        overflow-x: hidden;
    }
    .horizontal-wrapper {
        -ms-overflow-style: none;
        scrollbar-width: none;
        flex-direction: column;
        overflow-y: visible;
        overflow-x: hidden;
        scroll-snap-type: none;
    }
    .horizontal-wrapper > section {
        flex: none;
        width: 100%;
        min-height: 100vh;
        scroll-snap-align: none;
    }
}

/* Make each section a horizontal panel */
.horizontal-wrapper > section {
    flex: 0 0 100vw;
    min-height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    position: relative;
    overflow-y: auto;
}

/* Ensure container doesn't break layout */
.horizontal-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
header {
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
    left: 0;
}

header.scrolled {
    padding: 15px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light);
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    padding: 8px 15px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.logo i {
    margin-right: 10px;
    color: var(--accent);
    font-size: 2.2rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.05rem;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav ul li a:hover {
    color: var(--light);
}

nav ul li a:hover::after {
    width: 100%;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    margin-left: 20px;
}

.theme-toggle:hover {
    color: var(--light);
    background: rgba(255, 255, 255, 0.06);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 40px;
    background: transparent;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(2, 6, 23, 0) 70%);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -20%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(2, 6, 23, 0) 70%);
    z-index: -1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(to right, var(--light), var(--text-gray));
    -webkit-background-clip: text;
    background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-gray);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero buttons container */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.hero-buttons .btn {
    margin: 0;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
    animation: shineEffect 1.5s infinite;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -10px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--light);
    border: 1px solid var(--border-light);
    margin-left: 20px;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--light);
    transform: translateY(-3px);
}

/* ============================================
   FLOATING SHAPES
   ============================================ */
.floating-shapes div {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
    animation: float 15s infinite linear;
}

.floating-shapes div:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.floating-shapes div:nth-child(2) {
    top: 60%;
    left: 5%;
    width: 50px;
    height: 50px;
    animation-delay: 2s;
}

.floating-shapes div:nth-child(3) {
    top: 30%;
    right: 15%;
    width: 100px;
    height: 100px;
    animation-delay: 4s;
}

.floating-shapes div:nth-child(4) {
    bottom: 15%;
    right: 10%;
    width: 70px;
    height: 70px;
    animation-delay: 6s;
}

.floating-shapes div:nth-child(5) {
    bottom: 20%;
    left: 20%;
    width: 40px;
    height: 40px;
    animation-delay: 8s;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    display: flex;
    align-items: center;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--light), var(--text-gray));
    -webkit-background-clip: text;
    background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px 30px;
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: 0.4s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* ============================================
   SPECS SECTION (PROJECTS)
   ============================================ */
.specs {
    min-height: 100vh;
    padding: 100px 0;
    background: var(--specs-bg);
    display: flex;
    align-items: center;
}

.specs-flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.specs-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.specs-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-light);
}

.specs-content {
    flex: 1;
    min-width: 300px;
}

.specs-item {
    margin-bottom: 25px;
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s;
}

.specs-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    background: rgba(30, 41, 59, 0.9);
}

.specs-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--light);
    display: flex;
    align-items: center;
}

.specs-item h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    margin-right: 10px;
    box-shadow: 0 0 10px var(--accent);
}

.specs-item p {
    color: var(--text-gray);
    margin-left: 18px;
}

/* ============================================
   TIMELINE (PROJECTS) - RESPONSIVE
   ============================================ */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--border-light) 50%, transparent 100%);
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-items {
    position: relative;
    z-index: 2;
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 24px;
    padding-bottom: 40px;
    position: relative;
    align-items: flex-start;
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px);
}

.timeline-card--left {
    text-align: right;
}

.timeline-card--right {
    text-align: left;
}

.timeline-card-date {
    display: inline-block;
    background: var(--dark);
    padding: 4px 12px;
    border-radius: 16px;
    margin-bottom: 12px;
    border: 1px solid var(--border-light);
}

.timeline-card-date time {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 600;
}

.timeline-card-image-wrapper {
    margin-bottom: 16px;
}

.timeline-card-image {
    width: 100%;
    aspect-ratio: 1.91 / 1;
    object-fit: cover;
    border-radius: 8px;
}

.timeline-card-heading {
    margin: 0 0 12px 0;
    font-size: 1.2rem;
    color: var(--primary);
    word-break: break-word;
}

.timeline-card-title {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid var(--primary);
    transition: all 0.3s ease;
}

.timeline-card-title:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.timeline-card-title--private {
    cursor: default;
}

.timeline-card-title--private i {
    font-size: 0.7em;
    vertical-align: middle;
    margin-left: 4px;
}

.timeline-card-description {
    margin: 0 0 16px 0;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-card-actions {
    margin-top: 8px;
}

.timeline-card-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.timeline-card-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.timeline-card-btn--private {
    background: var(--glass-bg);
    color: var(--text-gray);
    border: 1px solid var(--border-light);
    cursor: default;
}

.timeline-card-btn--private:hover {
    background: var(--glass-bg);
    border-color: var(--border-light);
    transform: none;
    box-shadow: none;
}

.timeline-dot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 4px solid var(--dark);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* .timeline-empty {
    Placeholder for empty grid column
} */

.timeline-more-btn-wrapper {
    text-align: center;
    margin: 60px 0 40px 0;
}

.timeline-more-btn {
    display: inline-block;
    padding: 14px 40px;
    background: var(--secondary);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.timeline-more-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.timeline-more-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.timeline-more-btn:hover i {
    transform: translateX(4px);
}

/* Timeline more button - positioned in timeline with dot */
.timeline-more-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 24px;
    padding-top: 20px;
    position: relative;
    align-items: center;
}

.timeline-more-dot-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.timeline-more-dot {
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border: 4px solid var(--dark);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
}

.timeline-more-content {
    grid-column: 1 / -1;
    text-align: center;
    padding-top: 20px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    min-height: 100vh;
    background: var(--cta-bg);
    padding: 100px 0;
    text-align: center;
    color: var(--light);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--light), var(--text-gray));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-gray);
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--contact-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--contact-shadow);
    text-align: left;
    border: 1px solid var(--contact-border);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--light);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background-color: var(--input-bg);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s;
}

.contact-form .btn {
    padding: 14px 20px;
    font-size: 1.05rem;
    border-radius: 10px;
}

.form-control:focus {
    outline: none;
    background-color: var(--bg-card);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.form-control::placeholder {
    color: var(--text-gray);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.form-control:focus + .form-icon {
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background-color: var(--header-bg);
    color: var(--light);
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
}

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

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--light);
}

.footer-column p {
    color: var(--text-gray);
    line-height: 1.8;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-light);
    color: var(--text-gray);
    font-size: 0.9rem;
}

html[data-theme="light"] footer {
    background-color: var(--header-bg) !important;
    color: var(--light) !important;
    border-top: 1px solid var(--border-light) !important;
}

html[data-theme="dark"] footer {
    background-color: var(--header-bg) !important;
    color: var(--light) !important;
    border-top: 1px solid var(--border-light) !important;
}

/* ============================================
   THEME SELECTOR MODAL
   ============================================ */
.theme-selector-btn {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s;
    margin-left: 10px;
}

.theme-selector-btn:hover {
    color: var(--light);
    background: rgba(255, 255, 255, 0.06);
    transform: scale(1.1);
}

.theme-selector-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-selector-modal.active {
    opacity: 1;
    visibility: visible;
}

.theme-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    animation: fadeIn 0.3s ease;
}

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

.theme-modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 50px;
    max-width: 1400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(59, 130, 246, 0.1);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

html[data-theme="light"] .theme-modal-content {
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

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

.theme-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 12px;
    border-radius: 50%;
    transition: all 0.3s;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-modal-close:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 20px var(--primary);
}

.theme-modal-header {
    text-align: center;
    margin-bottom: 50px;
}

.theme-modal-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.theme-modal-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.6;
}

.theme-modal-header small {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.7;
    color: var(--accent);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.theme-card {
    background: var(--glass-bg);
    border: 2px solid var(--border-light);
    border-radius: 20px;
    padding: 28px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.theme-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s;
}

.theme-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 30px var(--primary);
}

.theme-card:hover::before {
    opacity: 1;
}

.theme-card.selected {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 30px var(--primary);
}

.theme-card.selected::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.theme-preview {
    position: relative;
    margin-bottom: 18px;
}

.theme-preview-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    margin: 0 auto 12px;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.theme-card:hover .theme-preview-circle {
    transform: scale(1.1);
}

.theme-icon {
    font-size: 2.5rem;
    display: block;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.theme-card h3 {
    font-size: 1.15rem;
    margin-bottom: 15px;
    color: var(--light);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.theme-colors {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
}

.color-dot:hover {
    transform: scale(1.2);
}

@media (max-width: 1400px) {
    .theme-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .theme-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .theme-modal-content {
        padding: 35px 20px;
        width: 95%;
    }

    .theme-modal-header h2 {
        font-size: 1.8rem;
    }

    .theme-card {
        padding: 20px;
    }

    .theme-preview-circle {
        width: 70px;
        height: 70px;
    }

    .theme-icon {
        font-size: 2rem;
    }
}

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

    .theme-modal-content {
        padding: 30px 15px;
    }

    .theme-modal-header h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   HORIZONTAL SCROLL INDICATORS
   ============================================ */
.scroll-indicator {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 15px 8px;
    border-radius: 50px;
    border: 1px solid var(--border-light);
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.scroll-dot.active {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    transform: scale(1.3);
}

.scroll-dot:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .scroll-indicator {
        right: 15px;
    }

    .scroll-dot {
        width: 10px;
        height: 10px;
    }
}

/* Scroll hint animation */
.scroll-hint {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light);
    font-size: 0.9rem;
    animation: scrollHintPulse 2s infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.scroll-hint.visible {
    opacity: 1;
}

.scroll-hint i {
    animation: scrollHintArrow 1.5s infinite;
}

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

@keyframes scrollHintArrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    .scroll-hint {
        bottom: 20px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ============================================
   FLOATING ACTION BUTTON (FAB)
   ============================================ */
#fab-contact {
    position: fixed;
    right: 20px;
    bottom: 22px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 2000;
}

#fab-contact:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}

.contact-form {
    border-color: rgba(6, 182, 212, 0.15);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

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

@keyframes shineEffect {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

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

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

@keyframes slideInUp {
    from {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes slideOutDown {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(50px);
    transition: all 1s ease;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.timeline-item-left,
.timeline-item-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Desktop: horizontal slide animation */
@media (min-width: 769px) {
    .timeline-item-left {
        transform: translateX(-40px);
    }

    .timeline-item-right {
        transform: translateX(40px);
    }

    .timeline-item-left.show,
    .timeline-item-right.show {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile: vertical slide animation (prevents horizontal overflow) */
@media (max-width: 768px) {
    .timeline-item-left,
    .timeline-item-right {
        transform: translateY(30px);
    }

    .timeline-item-left.show,
    .timeline-item-right.show {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-indicator {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   FORM ANIMATIONS
   ============================================ */
.form-control {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    transform: scale(1.01);
}

.form-icon {
    transition: all 0.3s ease;
}

.form-control:focus ~ .form-icon {
    transform: translateY(-50%) scale(1.1);
}

.btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.loading::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

.btn i {
    transition: transform 0.3s ease;
    display: inline-block;
}

.btn:hover i {
    transform: translateX(3px);
}

.icon-button:hover i {
    transform: scale(1.1) rotate(5deg);
}

#toast.show {
    animation: slideInUp 0.3s ease forwards;
}

#toast.hide {
    animation: slideOutDown 0.3s ease forwards;
}

/* Toast default styles based on theme variables */
#toast {
    display: none;
    background: var(--toast-bg) !important;
    color: var(--toast-color) !important;
    border: 1px solid var(--border-light);
}

/* ============================================
   STAGGERED ANIMATION DELAYS
   ============================================ */
.feature-card:nth-child(2) {
    transition-delay: 200ms;
}

.feature-card:nth-child(3) {
    transition-delay: 400ms;
}

.feature-card:nth-child(4) {
    transition-delay: 600ms;
}

.feature-card:nth-child(5) {
    transition-delay: 800ms;
}

.specs-item:nth-child(2) {
    transition-delay: 200ms;
}

.specs-item:nth-child(3) {
    transition-delay: 400ms;
}

.specs-item:nth-child(4) {
    transition-delay: 600ms;
}

/* ============================================
   UTILITIES
   ============================================ */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.icon-only {
    padding: 12px;
    width: auto;
    min-width: 48px;
}

.icon-only i {
    font-size: 1.1rem;
}

.form-container {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 0 12px;
    margin: 0 auto;
    position: relative;
    overflow: visible;
}

/* Form background decorative shapes */
.form-background-effects .shape {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
}

.form-background-effects .shape-1 {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -50px;
    background: radial-gradient(circle, var(--shape-1-start) 0%, var(--shape-1-end) 70%);
}

.form-background-effects .shape-2 {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -30px;
    background: radial-gradient(circle, var(--shape-2-start) 0%, var(--shape-2-end) 70%);
}

.form-background-effects .shape-3 {
    width: 60px;
    height: 60px;
    top: 30%;
    left: -30px;
    background: var(--shape-sm);
}

.form-background-effects .shape-4 {
    width: 40px;
    height: 40px;
    bottom: 25%;
    right: -20px;
    background: var(--shape-sm);
}

.form-floating-devicon {
    color: var(--form-devicon-color);
}

.views-counter {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.15) 0%, 
        rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    color: var(--light);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.1);
}

.views-counter:hover {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.25) 0%, 
        rgba(6, 182, 212, 0.2) 100%);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.views-counter span {
    color: var(--accent);
    font-weight: 800;
    font-size: 1.3rem;
    min-width: 50px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet & Small Desktop (768px - 1024px) */
@media (max-width: 1024px) {
    .timeline-item {
        gap: 16px;
    }
    
    .timeline-card {
        padding: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

/* Tablet Portrait & Mobile Landscape (max-width: 768px) */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        background-color: rgba(2, 6, 23, 0.95);
        backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 100;
        padding-top: 100px;
        overflow-y: auto;
    }

    .menu-open nav {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        margin-top: 0;
        padding: 20px;
    }

    nav ul li {
        margin: 0 0 25px 0;
        width: 100%;
        text-align: left;
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .menu-open nav ul li {
        opacity: 1;
        transform: translateX(0);
    }

    .menu-open nav ul li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .menu-open nav ul li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .menu-open nav ul li:nth-child(3) {
        transition-delay: 0.3s;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.2rem;
        border-radius: 12px;
        background-color: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.08);
        padding-left: 25px;
    }

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

    .hero p {
        font-size: 1.1rem;
    }

    .hero-content {
        padding: 20px;
    }

    /* Hero buttons - stack vertically on mobile */
    .hero-content .btn {
        width: 100%;
        margin: 10px 0 !important;
        text-align: center;
    }

    .btn {
        width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 20px;
    }

    .specs-flex {
        flex-direction: column;
    }

    .specs-flex > .cta {
        width: 100%;
        flex: 1 0 100%;
    }

    .specs-image,
    .specs-content {
        width: 100%;
        padding: 0;
    }

    /* Timeline - Single column layout on mobile */
    .timeline-container {
        padding: 20px 0 20px 0;
    }

    .timeline-line {
        left: 20px;
        transform: none;
        width: 3px;
    }

    .timeline-item {
        display: block;
        padding-left: 48px;
        padding-bottom: 30px;
        position: relative;
    }

    .timeline-item-left,
    .timeline-item-right {
        transform: translateY(30px);
    }

    .timeline-item-left.show,
    .timeline-item-right.show {
        transform: translateY(0);
    }

    .timeline-dot-wrapper {
        position: absolute;
        left: 12px;
        top: 24px;
        width: auto;
        min-width: auto;
    }

    .timeline-dot {
        margin: 0;
    }

    .timeline-empty {
        display: none;
    }

    .timeline-card {
        text-align: left !important;
        padding: 20px;
    }

    .timeline-card--left,
    .timeline-card--right {
        text-align: left;
    }

    /* Timeline more item - single column on mobile */
    .timeline-more-item {
        display: block;
        padding-left: 48px;
        padding-top: 10px;
        position: relative;
    }

    .timeline-more-dot-wrapper {
        position: absolute;
        left: 10px;
        top: 10px;
        width: auto;
        min-width: auto;
    }

    .timeline-more-content {
        padding-top: 0;
        text-align: left;
    }

    .timeline-more-btn {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }

    .cta h2 {
        font-size: 2.2rem;
    }

    .cta p {
        font-size: 1rem;
        padding: 0 20px;
    }

    .contact-form {
        padding: 22px;
    }

    .contact-form .btn {
        font-size: 1.05rem;
        padding: 12px 16px;
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    .section-title p {
        padding: 0 15px;
    }

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

    .footer-column ul li a:hover {
        transform: none;
    }

    /* Floating shapes - reduce on mobile */
    .floating-shapes div {
        opacity: 0.5;
    }

    .floating-shapes div:nth-child(3),
    .floating-shapes div:nth-child(4) {
        display: none;
    }
}

/* Small tablets (600px) */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }

    .section-title h2 {
        font-size: 1.9rem;
    }

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

    .feature-card {
        padding: 25px 18px;
    }

    .timeline-card {
        padding: 16px;
    }

    .timeline-card-heading {
        font-size: 1.1rem;
    }

    .timeline-card-description {
        font-size: 0.9rem;
    }

    .timeline-card-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .specs {
        padding: 60px 0;
    }

    .features {
        padding: 60px 0;
    }

    .cta {
        padding: 60px 0;
    }

    footer {
        padding: 50px 0 30px;
    }
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 90;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-open .overlay {
    display: block;
    opacity: 1;
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 200;
}

.menu-open {
    overflow: hidden;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--light);
}

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

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--light);
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* ============================================
   VERY SMALL SCREENS (< 480px)
   ============================================ */
@media (max-width: 480px) {
    .logo {
        font-size: 1.1rem;
        padding: 4px 8px;
    }

    .logo i {
        font-size: 1.5rem;
        margin-right: 5px;
    }

    .logo .logo-full {
        display: none;
    }

    .logo .logo-short {
        display: inline;
    }

    .form-icon {
        left: 14px;
    }

    .form-control {
        padding: 12px 16px 12px 46px;
    }

    .contact-form {
        padding: 18px;
    }

    .icon-only {
        min-height: 44px;
    }

    /* Very small screens - further adjustments */
    .hero h1 {
        font-size: 1.75rem;
    }

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

    .cta h2 {
        font-size: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-line {
        left: 15px;
        width: 2px;
    }

    .timeline-dot-wrapper {
        left: 9px;
        top: 20px;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
        border-width: 3px;
    }

    .timeline-card {
        padding: 14px;
    }

    .timeline-card-image {
        border-radius: 6px;
    }

    /* Timeline more item - 480px adjustments */
    .timeline-more-item {
        padding-left: 40px;
    }

    .timeline-more-dot-wrapper {
        left: 7px;
        top: 6px;
    }

    .timeline-more-dot {
        width: 16px;
        height: 16px;
        border-width: 3px;
    }

    .timeline-more-btn {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    /* Hide floating shapes on very small screens */
    .floating-shapes {
        display: none;
    }

    .specs {
        padding: 40px 0;
    }

    .features {
        padding: 40px 0;
    }

    .cta {
        padding: 40px 0;
    }

    footer {
        padding: 40px 0 25px;
    }

    .footer-grid {
        gap: 30px;
    }
}

.logo-short {
    display: none;
}

/* ============================================
   UNIVERSAL HORIZONTAL EXPANSION (TRUE HORIZONTAL)
   ============================================ */
    .horizontal-wrapper > section {
        flex: 0 0 auto !important;
        min-width: 100vw !important;
        width: max-content !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important; 
        flex-direction: row !important;
        justify-content: flex-start !important;
    }
    .container {
        display: flex;
        align-items: center;
        height: 100%;
        width: max-content !important;
        gap: 60px;
        padding: 0 5vw !important;
    }

    /* Universal Scroll limits indicator */
    .scroll-indicator {
        top: auto !important;
        bottom: 30px !important;
        right: 50% !important;
        transform: translateX(50%) !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 15px !important;
        z-index: 1000 !important;
    }
    .scroll-hint { display: none !important; }

    /* Transform Habilidades into horizontal row */
    .features-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 40px !important;
        align-items: stretch !important;
    }
    .feature-card {
        width: 320px !important;
        height: 480px;
    }

    /* Transform Projects Timeline into horizontal track */
    .timeline-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: max-content;
        position: relative;
    }
    .timeline-items {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 60px;
        position: relative;
        z-index: 2;
    }
    .timeline-line {
        width: 100% !important;
        height: 4px !important;
        top: 50% !important;
        left: 0 !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
    }
    .timeline-item {
        width: 400px !important;
        height: 650px !important; /* Fixed bounds for absolute inner centering */
        padding: 0 !important; 
        position: relative;
    }
    /* Neutralize alternating layout offsets */
    .timeline-item-left, .timeline-item-right {
        justify-content: center !important;
        align-items: center !important;
    }
    .timeline-item-left { padding-right: 0 !important; }
    .timeline-item-right { padding-left: 0 !important; }

    .timeline-dot {
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
    
    .timeline-card {
        margin: 0 !important;
        transform: none !important;
        position: absolute !important;
        left: 0 !important;
        width: 100% !important;
    }
    /* Lock alternating cards exactly to the 50% threshold without affecting flow */
    .timeline-item-left .timeline-card { bottom: 55% !important; margin-top: 0 !important; }
    .timeline-item-right .timeline-card { top: 55% !important; margin-top: 0 !important; }
    .timeline-item-left .timeline-card::after, .timeline-item-right .timeline-card::after { display: none !important; }

    /* Contact layout normalization */
    .contact-container { 
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 60px !important;
        align-items: center;
        width: 1000px; /* Keep contact fixed width */
    }

    /* Hide items that push body down */
    footer { display: none !important; }
    .timeline-more-btn-wrapper { margin: 0 !important; }

/* ============================================
   MOBILE LAYOUT OVERRIDES (CRITICAL FIXES)
   ============================================ */
@media (max-width: 768px) {
    /* Optimize Universal Horizontal Layout for very small screens */
    .horizontal-wrapper > section {
        /* Keep it horizontal, but allow vertical scroll internally if contact form gets tall */
        overflow-y: auto !important;
    }
    .container {
        padding: 0 8vw !important;
        gap: 30px !important;
    }

    /* Adjust features and timelines for narrower viewports */
    .feature-card { width: 80vw !important; height: auto !important; min-height: 400px; }
    .timeline-item { width: 80vw !important; height: 80vh !important; }
    .timeline-items { gap: 30px !important; }
    
    /* Ensure Contact form stacks vertically inside its horizontal slide */
    .contact-container { 
        display: flex !important;
        flex-direction: column !important;
        width: 85vw !important; 
        padding: 0 !important;
        gap: 30px !important;
    }

    /* Hide redundant horizontal-scroll UI in mobile */
    .scroll-indicator { display: none !important; }
    .scroll-hint { display: none !important; }

    /* Fix header height overlaps */
    header { padding: 8px 0 !important; }
    .logo { font-size: 1.1rem !important; }

    /* Push FAB and translate up to not clash with mobile home buttons */
    .fab-container { bottom: 20px !important; right: 15px !important; }
    .gtranslate_wrapper { bottom: 20px !important; left: 15px !important; }
}
