/* CSS Variables */
:root {
    --primary: #334ca0;
    --primary-dark: #283d80;
    --primary-light: #4a63b3;
    --accent: #feb913;
    --accent-dark: #e5a711;
    --secondary: #1e293b;
    --text: #334155;
    --text-light: #64748b;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gradient: linear-gradient(135deg, #334ca0 0%, #4a63b3 100%);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--secondary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--secondary);
    border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-white {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--gray-100);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 45px;
    width: auto;
}

.logo-img-footer {
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--secondary);
    transition: all 0.3s ease;
}

/* Hero */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.1;
    margin-bottom: 28px;
    min-height: 3.5em;
}

.hero-content h1 .typed-text {
    display: inline;
}

.hero-content h1 .cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent);
    margin-left: 4px;
    animation: blink 1s infinite;
}

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

.hero-content .tagline-secondary {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--primary);
}

.hero-content p {
    font-size: 1.35rem;
    color: var(--text-light);
    margin-bottom: 36px;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.animation-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(254, 185, 19, 0.2) 0%, rgba(254, 185, 19, 0) 60%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    animation: fade-in 1s ease-out 1.5s forwards;
}

.ripple {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(254, 185, 19, 0.5);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.ripple:nth-child(1) {
    animation: ripple 4s ease-out 2s infinite;
}

.ripple:nth-child(2) {
    animation: ripple 4s ease-out 3.3s infinite;
}

.ripple:nth-child(3) {
    animation: ripple 4s ease-out 4.6s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.code-particles {
    position: absolute;
    width: 600px;
    height: 600px;
    z-index: 1;
    pointer-events: none;
}

.code-particle {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #888;
    opacity: 0;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: float-out 3s ease-out forwards;
    text-shadow: 0 0 15px rgba(136, 136, 136, 0.5), 0 0 30px rgba(136, 136, 136, 0.3);
}

@keyframes fade-in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes float-out {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    10% {
        opacity: 0.8;
    }
    70% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(1) rotate(var(--rot));
    }
}

.hero-shape {
    width: 180px;
    height: auto;
    animation: zoomIn 1s ease-out forwards, flip 6s ease-in-out 2s infinite;
    filter: drop-shadow(0 20px 40px rgba(254, 185, 19, 0.5));
    opacity: 0;
    transform: scale(0);
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes flip {
    0%, 100% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(180deg);
    }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Services */
.promo-banner {
    background: var(--primary);
    padding: 16px 20px;
    text-align: center;
    border-radius: 12px;
    margin-top: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.promo-banner p {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

.promo-banner strong {
    color: var(--accent);
    font-size: 1.1rem;
}

.promo-banner a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.promo-banner a:hover {
    color: var(--white);
}

.services {
    padding: 10px 0 100px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
}

/* About */
.about {
    padding: 100px 0;
    background: var(--gray-50);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 400px;
    height: 400px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    color: white;
    opacity: 0.9;
}

/* Work */
.work {
    padding: 100px 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.work-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.work-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
}

.work-info {
    padding: 24px;
}

.work-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.work-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.work-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gray-100);
    color: var(--text);
    font-size: 0.85rem;
    border-radius: 20px;
    margin-right: 8px;
}

/* CTA */
.cta {
    padding: 100px 0;
    background: var(--gradient);
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

/* Contact */
.contact {
    padding: 100px 0;
    background: var(--gray-50);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 60px 0 30px;
    color: var(--gray-200);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-light);
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--text-light);
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-content p {
        max-width: none;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: flex;
        margin-top: 40px;
    }

    .hero-shape {
        width: 200px;
    }

    .promo-banner {
        margin-top: 80px;
    }

    .services-grid,
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .stats {
        justify-content: center;
    }

    .about-image {
        order: -1;
    }

    .image-placeholder {
        width: 300px;
        height: 300px;
        font-size: 6rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 16px 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links .btn {
        display: block;
        text-align: center;
        margin-top: 10px;
        padding: 14px 24px;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
        min-height: auto;
    }

    .hero-content .tagline-secondary {
        font-size: 1.1rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .animation-container {
        width: 200px;
        height: 200px;
    }

    .hero-shape {
        width: 120px;
    }

    .hero-visual::before {
        width: 220px;
        height: 220px;
    }

    .ripple {
        width: 120px;
        height: 120px;
    }

    .code-particles {
        width: 300px;
        height: 300px;
    }

    .promo-banner {
        margin-top: 40px;
        padding: 14px 16px;
    }

    .promo-banner p {
        font-size: 0.9rem;
    }

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

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

    .section-header h2,
    .about-text h2,
    .cta h2 {
        font-size: 1.75rem;
    }

    .section-header p,
    .cta p {
        font-size: 1rem;
    }

    .about {
        padding: 60px 0;
    }

    .about-text p {
        font-size: 1rem;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 5rem;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .cta {
        padding: 60px 0;
    }

    .contact {
        padding: 60px 0;
    }

    .contact-form {
        padding: 24px;
    }

    .contact-info {
        padding-top: 0;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content .tagline-secondary {
        font-size: 1rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 1rem;
    }

    .animation-container {
        width: 160px;
        height: 160px;
    }

    .hero-shape {
        width: 100px;
    }

    .hero-visual::before {
        width: 180px;
        height: 180px;
    }

    .ripple {
        width: 100px;
        height: 100px;
    }

    .code-particles {
        width: 250px;
        height: 250px;
    }

    .promo-banner {
        margin-top: 30px;
        padding: 12px 14px;
    }

    .promo-banner p {
        font-size: 0.85rem;
    }

    .services {
        padding: 10px 0 60px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2,
    .about-text h2,
    .cta h2 {
        font-size: 1.5rem;
    }

    .service-card {
        padding: 24px 18px;
    }

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

    .service-card h3 {
        font-size: 1.1rem;
    }

    .about {
        padding: 50px 0;
    }

    .image-placeholder {
        width: 200px;
        height: 200px;
        font-size: 4rem;
    }

    .cta {
        padding: 50px 0;
    }

    .contact {
        padding: 50px 0;
    }

    .contact-form {
        padding: 20px;
    }

    .form-group {
        margin-bottom: 18px;
    }

    .contact-item {
        gap: 14px;
    }

    .footer {
        padding: 30px 0 15px;
    }

    .footer-brand p {
        font-size: 0.9rem;
    }

    .footer-column h4 {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .footer-column ul {
        gap: 10px;
    }

    .footer-column a {
        font-size: 0.9rem;
    }
}
