/* ==========================================================================
   Base & Variables
   ========================================================================== */
:root {
    /* Colors - Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 25, 0.6);
    --bg-card-hover: rgba(30, 30, 38, 0.8);
    
    /* Accents */
    --accent-primary: #00f2fe;
    --accent-secondary: #4facfe;
    --accent-tertiary: #764ba2;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    --accent-gradient-alt: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-tertiary) 100%);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #666677;
    
    /* Structure */
    --nav-height: 80px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    
    /* Animations & Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

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

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

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

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* ==========================================================================
   Backgrounds & Glassmorphism
   ========================================================================== */
.bg-gradient-1, .bg-gradient-2 {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.bg-gradient-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, rgba(10,10,15,0) 70%);
}

.bg-gradient-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(118,75,162,0.15) 0%, rgba(10,10,15,0) 70%);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(5%, 5%) scale(1.05); }
    100% { transform: translate(-5%, -5%) scale(0.95); }
}

.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--glass-border);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.glass-nav.scrolled {
    height: 70px;
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    transition: transform var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-panel:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.lang-switch {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 0.25rem;
    border: var(--glass-border);
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.lang-btn.active {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    box-shadow: 0 4px 10px rgba(0, 242, 254, 0.3);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-secondary) 0%, var(--accent-primary) 100%);
    z-index: -1;
    transition: opacity var(--transition-normal);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
    transform: translateY(-2px);
    color: var(--bg-dark);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 242, 254, 0.05);
    transform: translateY(-2px);
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

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

.hero-title {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

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

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 242, 254, 0.2);
    top: 10%;
    right: 10%;
    animation: pulse-slow 8s infinite alternate;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: rgba(118, 75, 162, 0.2);
    bottom: 20%;
    left: 10%;
    animation: pulse-slow 12s infinite alternate-reverse;
}

.glass-card {
    position: absolute;
    background: rgba(20, 20, 25, 0.5);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.main-card {
    width: 280px;
    height: 340px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: float-y 6s ease-in-out infinite;
}

.sub-card {
    width: 220px;
    height: 140px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.sub-card.right {
    top: 20%;
    right: 5%;
    animation: float-y 5s ease-in-out infinite alternate-reverse;
}

.sub-card.left {
    bottom: 15%;
    left: 5%;
    animation: float-y 7s ease-in-out infinite 1s;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.05);
}

.code-icon { background: linear-gradient(135deg, rgba(0,242,254,0.2), rgba(0,242,254,0.05)); border: 1px solid rgba(0,242,254,0.2); }
.iot-icon { background: linear-gradient(135deg, rgba(79,172,254,0.2), rgba(79,172,254,0.05)); border: 1px solid rgba(79,172,254,0.2); }
.ai-icon { background: linear-gradient(135deg, rgba(118,75,162,0.2), rgba(118,75,162,0.05)); border: 1px solid rgba(118,75,162,0.2); }

.card-line {
    height: 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.1);
}

.w-100 { width: 100%; }
.w-75 { width: 75%; }
.w-50 { width: 50%; }

.pulse-line {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(118,75,162,0.5) 50%, rgba(255,255,255,0.1) 100%);
    background-size: 200% 100%;
    animation: load-pulse 2s infinite linear;
}

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

@keyframes pulse-slow {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes load-pulse {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem 2rem;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 2px;
    background: transparent;
    transition: background var(--transition-normal);
}

.service-card:hover::before {
    background: var(--accent-gradient);
}

.service-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.web-theme { background: rgba(0, 242, 254, 0.1); color: #00f2fe; }
.iot-theme { background: rgba(79, 172, 254, 0.1); color: #4facfe; }
.ai-theme { background: rgba(118, 75, 162, 0.1); color: #b072f9; }

.service-icon {
    width: 32px;
    height: 32px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    aspect-ratio: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.abstract-shape {
    position: relative;
    width: 80%;
    height: 80%;
}

.geo {
    position: absolute;
    border: 1px solid rgba(255,255,255,0.1);
}

.geo-1 {
    width: 100%; height: 100%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: linear-gradient(135deg, rgba(0,242,254,0.1), rgba(118,75,162,0.1));
    animation: morph 8s ease-in-out infinite;
}

.geo-2 {
    width: 80%; height: 80%;
    top: 10%; left: 10%;
    border-radius: 50%;
    border-color: rgba(0,242,254,0.3);
    border-style: dashed;
    animation: spin 20s linear infinite;
}

.geo-3 {
    width: 60%; height: 60%;
    top: 20%; left: 20%;
    border-radius: 12px;
    background: rgba(255,255,255,0.02);
    backdrop-filter: blur(5px);
    transform: rotate(45deg);
    animation: rotate-pulse 10s ease-in-out infinite alternate;
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

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

@keyframes rotate-pulse {
    0% { transform: rotate(45deg) scale(1); }
    100% { transform: rotate(135deg) scale(1.1); }
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

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

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

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-container {
    max-width: 900px;
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    overflow: hidden;
}

.contact-info {
    padding: 3rem;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid rgba(255,255,255,0.05);
}

.contact-desc {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-link svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.glass-input {
    width: 100%;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.glass-input:focus {
    background: rgba(255,255,255,0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 4px rgba(0, 242, 254, 0.1);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 2rem 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
}

.border-t-glass {
    border-top: var(--glass-border);
}

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

.footer-logo {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animation Classes (Triggered by JS)
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-content, .about-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-title { font-size: 3rem; }
    .hero-subtitle { margin: 0 auto 2.5rem; }
    .hero-cta { justify-content: center; }
    
    .section-title { font-size: 2rem; }
    
    .contact-card {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        padding: 2rem;
        transition: left var(--transition-normal);
        align-items: center;
        justify-content: center;
        gap: 2rem;
    }
    
    .nav-links.nav-active {
        left: 0;
    }
    
    .nav-links a { font-size: 1.2rem; }
    
    .mobile-menu-btn { display: flex; }
    
    /* Hamburger Animation */
    .mobile-menu-btn.toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
    .mobile-menu-btn.toggle span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
    
    .hero { padding-top: 100px; }
    
    .lang-switch { margin-right: 1.5rem; }
    
    .stats { flex-direction: column; gap: 1.5rem; align-items: center; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .hero-cta { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}
