:root {
    /* Brand Colors */
    --color-navy: #1a1f36;
    --color-blue: #3b82f6;
    --color-purple: #8b5cf6;
    --color-white: #ffffff;
    --color-gray-50: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.5;
    color: var(--color-gray-800);
    background: var(--color-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-gray-700);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        var(--color-blue) 0%, 
        var(--color-purple) 50%, 
        var(--color-blue) 100%);
    background-size: 200% 100%;
    animation: gradient-shift 8s linear infinite;
    opacity: 0.8;
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1.125rem;
    min-width: 160px;
    text-align: center;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    color: var(--color-white);
}

.cta-button.secondary {
    background: var(--color-gray-100);
    color: var(--color-gray-800);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

.hero p {
    font-size: 1.375rem;
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    position: relative;
    background: linear-gradient(to bottom, rgba(59, 130, 246, 0.03), transparent);
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
}

.about h2 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-blue), var(--color-purple));
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
}

.about-text {
    position: relative;
    z-index: 1;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-700);
    margin-bottom: 1.25rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-graphic {
    position: relative;
    background: var(--color-navy);
    border-radius: 1rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 0 3px rgba(59, 130, 246, 0.1);
    overflow: hidden;
    transform: translateY(-1rem);
    transition: all 0.3s ease;
}

.about-graphic:hover {
    transform: translateY(-1.25rem);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.15),
        0 0 0 4px rgba(59, 130, 246, 0.15);
}

.code-editor {
    position: relative;
    width: 100%;
    height: 100%;
    font-family: 'Monaco', 'Consolas', monospace;
    background: linear-gradient(145deg, #1a1f36, #1e2433);
}

.code-editor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--color-blue), var(--color-purple));
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.window-controls {
    display: flex;
    gap: 6px;
}

.control-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control-dot.red { background-color: #ff5f56; }
.control-dot.yellow { background-color: #ffbd2e; }
.control-dot.green { background-color: #27c93f; }

.editor-title {
    color: var(--color-gray-200);
    font-size: 0.875rem;
    margin-left: 1rem;
}

.code-content {
    padding: 1.5rem;
    color: #e4e4e7;
    font-size: 0.9rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.code-line {
    display: flex;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
    position: relative;
}

.code-line:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.line-number {
    color: rgba(255, 255, 255, 0.2);
    min-width: 2rem;
    padding-right: 1rem;
    text-align: right;
    user-select: none;
    font-size: 0.8rem;
}

.keyword { 
    color: #ff79c6; 
    text-shadow: 0 0 8px rgba(255, 121, 198, 0.3);
}
.string { 
    color: #f1fa8c; 
    text-shadow: 0 0 8px rgba(241, 250, 140, 0.3);
}
.comment { 
    color: #6272a4; 
    font-style: italic;
}
.function { 
    color: #50fa7b; 
    text-shadow: 0 0 8px rgba(80, 250, 123, 0.3);
}
.constant { 
    color: #bd93f9; 
    text-shadow: 0 0 8px rgba(189, 147, 249, 0.3);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing {
    border-right: 2px solid var(--color-blue);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--color-blue); }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--color-gray-50);
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    padding: 1.75rem;
    background: var(--color-white);
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 380px;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    transition: transform 0.3s ease;
    stroke: var(--color-blue);
    fill: none;
    opacity: 0.9;
}

.service-card:hover .service-icon svg {
    stroke: var(--color-purple);
}

/* Add subtle gradient background to cards */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Talent Section */
.talent {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(135deg, #faf7f5, #f3f0ed);
    color: var(--color-navy);
    overflow: hidden;
}

.talent::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    mix-blend-mode: soft-light;
}

.talent .container {
    position: relative;
    z-index: 1;
}

.talent-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--color-blue);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.talent-intro h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--color-navy), var(--color-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.talent-intro p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-gray-600);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 
        0 8px 24px rgba(59, 130, 246, 0.08),
        0 1px 2px rgba(59, 130, 246, 0.02);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--color-gray-600);
}

.talent-grid::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    border-radius: 1.5rem;
    z-index: -1;
    opacity: 0.08;
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--color-white);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 
        0 20px 40px rgba(59, 130, 246, 0.08),
        0 0 0 1px rgba(59, 130, 246, 0.08);
    overflow: hidden;
}

.card-header {
    padding: 2rem;
    background: linear-gradient(135deg, var(--color-navy), #2a3958);
    color: white;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.card-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.contact-form {
    padding: 2rem;
}

.contact-form .form-group {
    margin-bottom: 1.25rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #f8faff;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    height: 100px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--color-navy);
    border: none;
    border-radius: 0.75rem;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--color-blue);
    transform: translateY(-2px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    color: var(--color-white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    height: 120px;
    resize: vertical;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    border: none;
    border-radius: 0.75rem;
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.submit-button svg {
    transition: transform 0.3s ease;
}

.submit-button:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .talent {
        padding: 6rem 0;
    }

    .talent-intro {
        margin-bottom: 3rem;
    }

    .talent-intro h2 {
        font-size: 2rem;
    }

    .stats-grid {
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 300px;
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    z-index: 1000;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 420px;
    margin: 4rem auto;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 1.25rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(59, 130, 246, 0.1);
}

.modal-content h2 {
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-bottom: 2rem;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2rem;
    height: 2rem;
    border: none;
    background: rgba(59, 130, 246, 0.1);
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--color-blue);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--color-navy);
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--color-gray-700);
    letter-spacing: 0.02em;
}

input,
textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.75rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--color-gray-800);
}

input {
    background: var(--color-white);
}

textarea {
    height: 120px;
    resize: vertical;
    line-height: 1.6;
    background: var(--color-gray-50);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    flex: 1;
}

.button.primary {
    background: linear-gradient(135deg, var(--color-blue), var(--color-purple));
    color: white;
    border: none;
}

.button.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.button.secondary {
    background: transparent;
    border: 1px solid var(--color-gray-200);
    color: var(--color-gray-700);
}

.button.secondary:hover {
    background: var(--color-gray-50);
    border-color: var(--color-gray-300);
}

/* Footer */
.footer {
    padding: 4rem 0;
    background: rgba(26, 31, 54, 0.97);
    color: #ffffff;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(59, 130, 246, 0.2),
        transparent
    );
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 3rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        gap: 4rem;
    }
    
    .services-grid {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .service-card {
        width: 100%;
        max-width: 450px;
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-graphic {
        max-height: 400px;
    }
    
    .code-content {
        font-size: 0.8rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        min-height: auto;
        padding: 2rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero p {
        font-size: 1.125rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 48px;
        height: 48px;
    }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Form Validation Styles */
input:invalid,
textarea:invalid {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}