/* ========================================
   RESET & ROOT VARIABLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ========================================
   HERO BACKGROUND & ANIMATIONS
   ======================================== */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-2);
    top: -250px;
    right: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    bottom: -200px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* ========================================
   HEADER SECTION
   ======================================== */
header {
    position: relative;
    padding: 140px 0 120px;
    overflow: hidden;
}

.header-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 24px;
    font-size: 0.875rem;
    color: #86efac;
    margin-bottom: 28px;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.375rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 700px;
}

.highlight {
    color: #a5b4fc;
    font-weight: 600;
}

.stats-row {
    display: flex;
    gap: 56px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 8px;
    font-weight: 500;
}

/* ========================================
   BUTTONS
   ======================================== */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 40px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ========================================
   SECTIONS
   ======================================== */
section {
    padding: 120px 0;
    position: relative;
}

.bg-alternate {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.8;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 40px;
}

.service-card {
    padding: 48px;
    border-radius: 20px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
    transform: translateY(-8px);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-2);
    border-radius: 16px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1.05rem;
}

/* ========================================
   EXPERIENCE SECTION
   ======================================== */
.experience-timeline {
    max-width: 1000px;
    margin: 0 auto;
}

.exp-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    margin-bottom: 60px;
    padding: 48px;
    background: var(--white);
    border-radius: 20px;
    border: 2px solid var(--gray-200);
    transition: all 0.3s;
    position: relative;
}

.exp-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-2);
    border-radius: 20px 0 0 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

.exp-item:hover::before {
    opacity: 1;
}

.exp-item:hover {
    border-color: var(--primary);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.1);
    transform: translateX(4px);
}

.company-logo {
    display: flex;
    align-items: flex-start;
}

.company-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.company-type {
    font-size: 0.875rem;
    color: var(--gray-500);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exp-content p {
    color: var(--gray-600);
    line-height: 1.9;
    font-size: 1.05rem;
}

.exp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    padding: 6px 14px;
    background: var(--gray-100);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--gray-700);
    font-weight: 500;
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    padding: 48px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 20px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.project-card:hover::after {
    opacity: 0.03;
}

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

.project-content {
    position: relative;
    z-index: 1;
}

.project-icon {
    width: 72px;
    height: 72px;
    background: var(--gradient-2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.3);
}

.project-card h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.project-card p {
    color: var(--gray-600);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 28px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s;
}

.project-link:hover {
    gap: 16px;
    color: var(--primary-dark);
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.benefit-card {
    display: flex;
    gap: 20px;
    padding: 32px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 16px;
    transition: all 0.3s;
}

.benefit-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-2);
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.benefit-text {
    color: var(--gray-700);
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 500;
}

/* ========================================
   TECH STACK SECTION
   ======================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.tech-tag {
    padding: 20px 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-700);
    transition: all 0.3s;
}

.tech-tag:hover {
    border-color: var(--primary);
    background: var(--gray-100);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.1);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-section {
    background: var(--dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-section .hero-bg {
    opacity: 0.5;
}

.contact-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-section h2 {
    color: var(--white);
    font-size: 3.5rem;
}

.contact-section .section-subtitle {
    color: #cbd5e1;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 20px 40px;
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    color: #a5b4fc;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 20px;
    transition: all 0.3s;
}

.contact-email:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(99, 102, 241, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    padding: 48px 0;
    background: #020617;
    color: var(--gray-500);
    text-align: center;
    font-size: 0.95rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

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

    .exp-item {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    .stats-row {
        gap: 32px;
    }

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

    .contact-section h2 {
        font-size: 2.5rem;
    }
}