@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #0a0a0a;
    --surface-color: #141414;
    --surface-lighter: #1e1e1e;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-height: 80px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

section {
    padding: 100px 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 60px;
    width: auto;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.lang-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--surface-lighter);
    padding: 0.4rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.lang-btn {
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dim);
    font-weight: 600;
}

.lang-btn.active {
    background: var(--accent-color);
    color: white;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--accent-color);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Hero Section */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
    text-align: center;
    background: #0a0a0a;
}

.hero-bg-elite {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('assets/hero-v2.png') center/cover no-repeat;
    z-index: 1;
    animation: bgPulse 20s infinite alternate ease-in-out;
    opacity: 0.4;
}

.hero-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 2;
    animation: meshFlow 15s infinite alternate ease-in-out;
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 3;
    transform: perspective(1000px) rotateX(60deg) translateY(-50%);
    animation: gridMove 60s infinite linear;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 70%);
}

@keyframes bgPulse {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

@keyframes meshFlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(2%, 2%); }
}

@keyframes gridMove {
    from { background-position: 0 0; }
    to { background-position: 0 1000px; }
}

.hero-flex {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 11;
    margin-bottom: 2rem;
}

/* 3D Card Rotation - Refined */
.card-scene {
    width: 100%;
    height: 400px;
    perspective: 2000px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2rem;
}

.card-deck {
    width: 300px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateDeck 30s infinite linear;
}

.rotating-card {
    position: absolute;
    width: 300px;
    height: 200px;
    left: 0;
    top: 0;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(20px);
    transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    backface-visibility: hidden;
}

.rotating-card:hover {
    transform: rotateY(inherit) translateZ(280px) scale(1.1) !important;
    border-color: var(--accent-color);
    box-shadow: 0 0 40px var(--accent-glow);
    z-index: 100;
}

.rotating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.4s;
}

.rotating-card:hover {
    border-color: var(--accent-color);
}

.rotating-card:hover img {
    opacity: 1;
}

/* 6 Cards with tighter radius (220px) */
.rotating-card:nth-child(1) { transform: rotateY(0deg) translateZ(220px); }
.rotating-card:nth-child(2) { transform: rotateY(60deg) translateZ(220px); }
.rotating-card:nth-child(3) { transform: rotateY(120deg) translateZ(220px); }
.rotating-card:nth-child(4) { transform: rotateY(180deg) translateZ(220px); }
.rotating-card:nth-child(5) { transform: rotateY(240deg) translateZ(220px); }
.rotating-card:nth-child(6) { transform: rotateY(300deg) translateZ(220px); }

@keyframes rotateDeck {
    from { transform: rotateY(0deg) rotateX(-5deg); }
    to { transform: rotateY(360deg) rotateX(-5deg); }
}

@media (max-width: 1100px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .hero-content {
        max-width: 100%;
    }
    .card-scene {
        width: 100%;
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .card-scene {
        perspective: 1500px;
    }
    .rotating-card {
        width: 220px;
        height: 140px;
    }
    .rotating-card:nth-child(n) { translateZ(160px); }
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out forwards;
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

.hero-content p {
    font-size: 1.4rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
}
/* Security Badge */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-group.hp {
    display: none;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

/* Section Styling */
.section-tag {
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    display: block;
}

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

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

.service-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    background: var(--surface-lighter);
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

/* Contact Section */
.contact-flex {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

.contact-details {
    margin-top: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--surface-color);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

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

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 12px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
/* Footer Info */
.footer-center {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact-item i {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--surface-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.social-btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface-color);
    width: 100%;
    max-width: 600px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    position: relative;
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-main);
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #128c7e;
}

/* Code Snippet Decoration */
.code-decoration {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
    opacity: 0.3;
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .contact-flex {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .footer-contact {
        gap: 1.5rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
