/* ------------------------- */
/* ----- CSS Variables ----- */
/* ------------------------- */
:root {
    --ease-1: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-2: cubic-bezier(0.55, 0.085, 0.68, 0.53);
    
    /* Light Theme */
    --bg-color-light: #F0F2F5;
    --text-color-light: #1A202C;
    --heading-color-light: #111729;
    --primary-color-light: #3A57E8;
    --card-bg-light: rgba(255, 255, 255, 0.5);
    --card-border-light: rgba(255, 255, 255, 0.2);
    --shadow-color-light: rgba(0, 0, 0, 0.1);
    --line-color-light: rgba(58, 87, 232, 0.1);
    
    /* Light Theme Gradient Background */
    --grad-1-light: hsla(210, 80%, 95%, 1);
    --grad-2-light: hsla(28, 100%, 90%, 1);
    --grad-3-light: hsla(190, 90%, 90%, 1);
    --grad-4-light: hsla(340, 90%, 95%, 1);


    /* Dark Theme */
    --bg-color-dark: #0d1117;
    --text-color-dark: #A0AEC0;
    --heading-color-dark: #EDF2F7;
    --primary-color-dark: #5A78FF;
    --card-bg-dark: rgba(26, 32, 44, 0.5);
    --card-border-dark: rgba(255, 255, 255, 0.1);
    --shadow-color-dark: rgba(0, 0, 0, 0.4);
    --line-color-dark: rgba(90, 120, 255, 0.07);

    /* Dark Theme Gradient Background */
    --grad-1-dark: hsla(210, 40%, 12%, 1);
    --grad-2-dark: hsla(260, 40%, 15%, 1);
    --grad-3-dark: hsla(190, 40%, 15%, 1);
    --grad-4-dark: hsla(340, 40%, 12%, 1);
}

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

@keyframes moveLines {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
    margin: 0;
    transition: background-color 0.3s var(--ease-1), color 0.3s var(--ease-1);
    position: relative;
    overflow-x: hidden;
}

/* Flowing Lines Background */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}
.background-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(45deg, var(--line-color-light) 1px, transparent 1px),
        linear-gradient(-45deg, var(--line-color-light) 1px, transparent 1px);
    background-size: 100px 100px;
    animation: moveLines 4s linear infinite;
}
body.dark-mode .background-container::before {
     background-image: 
        linear-gradient(45deg, var(--line-color-dark) 1px, transparent 1px),
        linear-gradient(-45deg, var(--line-color-dark) 1px, transparent 1px);
}


/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(120deg, var(--grad-1-light), var(--grad-2-light), var(--grad-3-light), var(--grad-4-light));
    background-size: 400% 400%;
    animation: moveGradient 20s ease infinite;
    z-index: -3;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
}
body.dark-mode::before {
     background: linear-gradient(120deg, var(--grad-1-dark), var(--grad-2-dark), var(--grad-3-dark), var(--grad-4-dark));
     background-size: 400% 400%;
     animation: moveGradient 20s ease infinite;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Sora', sans-serif;
    color: var(--heading-color-light);
    font-weight: 700;
}
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: var(--heading-color-dark);
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.3; }
p { line-height: 1.7; font-size: 1rem; }

/* Layout */
.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 80px 0;
}

/* UPDATED Glass Card Style */
.glass-card {
    background: var(--card-bg-light);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid var(--card-border-light);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 var(--shadow-color-light);
    transition: all 0.3s var(--ease-1);
}
body.dark-mode .glass-card {
    background: var(--card-bg-dark);
    border-color: var(--card-border-dark);
    box-shadow: 0 8px 32px 0 var(--shadow-color-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s var(--ease-1);
    border: none;
    cursor: pointer;
}
.btn svg {
    width: 20px;
    height: 20px;
}
.btn-primary {
    background-color: var(--primary-color-light);
    color: #fff;
    box-shadow: 0 4px 15px rgba(58, 87, 232, 0.3);
}
body.dark-mode .btn-primary {
    background-color: var(--primary-color-dark);
    box-shadow: 0 4px 15px rgba(90, 120, 255, 0.3);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(58, 87, 232, 0.4);
}
body.dark-mode .btn-primary:hover {
    box-shadow: 0 7px 20px rgba(90, 120, 255, 0.4);
}
.btn-secondary {
    background-color: var(--card-bg-light);
    color: var(--heading-color-light);
    border: 1px solid var(--card-border-light);
}
body.dark-mode .btn-secondary {
    background-color: var(--card-bg-dark);
    color: var(--heading-color-dark);
    border: 1px solid var(--card-border-dark);
}
.btn-secondary:hover {
     border-color: var(--primary-color-light);
     color: var(--primary-color-light);
}
body.dark-mode .btn-secondary:hover {
     border-color: var(--primary-color-dark);
     color: var(--primary-color-dark);
}

/* --- Section Specific Styles --- */

/* Header */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    padding: 15px 5%;
    box-sizing: border-box;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 25px;
    border-radius: 50px;
}
header .header-inner {
    background: var(--card-bg-light);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border-light);
    box-shadow: 0 8px 32px 0 var(--shadow-color-light);
}
body.dark-mode header .header-inner {
    background: var(--card-bg-dark);
    border-color: var(--card-border-dark);
    box-shadow: 0 8px 32px 0 var(--shadow-color-dark);
}
.logo { font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 700; text-decoration: none; color: inherit; }
.desktop-nav { display: block; }
.desktop-nav a {
    margin: 0 15px;
    text-decoration: none;
    color: inherit;
    font-weight: 500;
    position: relative;
}
.desktop-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color-light);
    transition: width 0.3s var(--ease-1);
}
body.dark-mode .desktop-nav a::after {
    background-color: var(--primary-color-dark);
}
.desktop-nav a:hover::after {
    width: 100%;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.theme-switcher {
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.theme-switcher svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu-toggle { display: none; }
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.5s;
    z-index: 101;
}
.mobile-nav.open { 
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav a { font-size: 2rem; text-decoration: none; color: inherit; }
#close-menu-btn { position: absolute; top: 30px; right: 30px; }
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
    transition: opacity 0.5s, visibility 0s 0.5s;
}
.menu-overlay.open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s;
}


/* Hero Section */
#hero {
    padding-top: 180px;
    text-align: center;
}
#hero h1 { margin-bottom: 20px; }
#hero p { max-width: 600px; margin: 0 auto 40px; font-size: 1.1rem; opacity: 0.8; }
#hero .btn { margin: 10px; }

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.service-card {
    text-align: center;
    transition: transform 0.3s var(--ease-1);
}
.service-card:hover { transform: translateY(-10px); }
.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--primary-color-light);
    color: #fff;
}
.service-icon svg { width: 32px; height: 32px; }
body.dark-mode .service-icon { background: var(--primary-color-dark); }
.service-card h3 { margin-bottom: 10px; }

/* About Us Section */
.about-content { display: flex; align-items: center; gap: 50px; }
.about-text, .about-image { flex: 1; }
.about-image img { width: 100%; border-radius: 20px; box-shadow: 0 10px 30px var(--shadow-color-light); }
body.dark-mode .about-image img { box-shadow: 0 10px 30px var(--shadow-color-dark); }

/* UPDATED Slider Structure */
.slider-component {
    position: relative;
    margin-top: 50px;
}
.slider-container {
    overflow: hidden;
}
.slider-wrapper {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 60px);
    left: -30px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}
.slider-btn {
    pointer-events: all;
    background: var(--card-bg-light);
    border: 1px solid var(--card-border-light);
    color: var(--heading-color-light);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s var(--ease-1);
}
body.dark-mode .slider-btn {
    background: var(--card-bg-dark);
    border-color: var(--card-border-dark);
    color: var(--heading-color-dark);
}
.slider-btn:hover {
    background-color: var(--primary-color-light);
    color: #fff;
}
body.dark-mode .slider-btn:hover {
    background-color: var(--primary-color-dark);
}

/* Portfolio Slider Specific */
.portfolio-slide-content {
    display: flex;
    gap: 30px;
}
.portfolio-image {
    flex: 1.5;
    overflow: hidden;
    border-radius: 16px;
    height: 400px;
}
.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portfolio-info {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Testimonials Slider Specific */
.testimonial-card { text-align: center; }
.testimonial-quote { font-size: 1.2rem; font-style: italic; margin-bottom: 20px; }
.testimonial-author { font-weight: 700; }
.testimonial-author span { font-weight: 400; opacity: 0.7; }

/* Process Section */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 50px auto;
    padding: 0 20px;
}
.process-timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--card-border-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}
body.dark-mode .process-timeline::before {
    background: var(--card-border-dark);
}
.process-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}
.process-item:nth-child(odd) { left: 0; text-align: right; }
.process-item:nth-child(even) { left: 50%; text-align: left; }
.process-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -14px;
    background-color: var(--primary-color-light);
    border: 4px solid var(--card-bg-light);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}
body.dark-mode .process-item::after {
    background-color: var(--primary-color-dark);
    border-color: var(--card-bg-dark);
}
.process-item:nth-child(even)::after { left: -14px; }
.process-content { padding: 20px 30px; position: relative; }

/* FAQ Section */
.faq-item {
    border-bottom: 1px solid var(--card-border-light);
    padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }
body.dark-mode .faq-item { 
    border-color: var(--card-border-dark);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-2), padding-top 0.4s var(--ease-2);
}
.faq-item.active .faq-answer {
    max-height: 200px;
    padding-top: 15px;
}
.faq-icon { transition: transform 0.3s var(--ease-1); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-icon svg { width: 24px; height: 24px; }

/* Contact Section */
#contact { text-align: center; }
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.btn-telegram { background-color: #27A0D9; color: white; }
.btn-whatsapp { background-color: #25D366; color: white; }
.btn-telegram:hover { box-shadow: 0 7px 20px rgba(39, 160, 217, 0.4); }
.btn-whatsapp:hover { box-shadow: 0 7px 20px rgba(37, 211, 102, 0.4); }


/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--delay, 0s);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content { flex-direction: column; }
    .portfolio-slide-content { flex-direction: column; }
    .portfolio-image { height: 300px; }
}
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .container { padding: 60px 0; }
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: block; cursor: pointer; background: none; border: none; padding: 5px; color: inherit; }
    .mobile-menu-toggle svg { width: 28px; height: 28px; }
    .process-timeline::before { left: 12px; }
    .process-item, .process-item:nth-child(even) { width: 100%; left: 0; padding-left: 60px; padding-right: 0; text-align: left; }
    .process-item::after, .process-item:nth-child(even)::after { left: 0px; }
    .slider-nav { display: none; }
}
