/* Modern Reset & Base - Dark Tech Theme Matching Kalyotex Logo */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #0a0e2a; /* Deep navy from logo background */
    color: #ffffff; /* White text */
    line-height: 1.6;
    overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }

/* Container & Typography */
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 0.9; }
h2 { font-size: clamp(2.5rem, 6vw, 4rem); }

/* Colors - Exact Match to Kalyotex Logo Gradient & Accents */
:root {
    --bg: #0a0e2a; /* Deep navy background */
    --accent-primary: #ff00ff; /* Hot pink-magenta (for "TECHNOLOGY" & main buttons) */
    --accent-secondary: #00ffff; /* Cyan blue (gradient start) */
    --accent-dark: #c800c8; /* Darker pink for hover */
    --text: #ffffff; /* Pure white text */
    --text-muted: #b0b0ff; /* Light purple-gray muted text */
    --card: rgba(20, 20, 50, 0.6); /* Dark semi-transparent glass cards */
    --border: rgba(255, 255, 255, 0.1); /* Subtle white borders */
    --gradient: linear-gradient(135deg, #00ffff, #8000ff, #ff00ff); /* Full logo gradient */
}

/* Header - Dark glass with blur */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 14, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: background 0.4s, box-shadow 0.4s;
}
header.scrolled { 
    background: rgba(10, 14, 42, 0.95);
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

/* Nav */
nav { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; }
.logo img { height: 60px; object-fit: contain; } /* Logo shines on dark */
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
    color: var(--text);
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 2px;
    background: var(--accent-primary); transition: width 0.4s;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--accent-primary); transform: translateY(-2px); }

/* Mobile Menu */
.menu-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: var(--accent-primary); }
@media (max-width: 768px) {
    .nav-links { 
        position: absolute; top: 100%; left: 0; right: 0; 
        flex-direction: column; background: var(--bg); padding: 2rem; gap: 1.5rem;
        transform: translateY(-100%); opacity: 0; transition: all 0.4s ease;
        pointer-events: none; box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
    .nav-links.active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .menu-toggle { display: block; }
}

/* Hero - Strong dark overlay with gradient tint */
.hero {
    height: 100vh;
    min-height: 800px;
    background: linear-gradient(rgba(10,14,42,0.8), rgba(10,14,42,0.9)), url('images/hero.jpg') center/cover no-repeat fixed;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    position: relative;
    color: var(--text);
}
.hero-content {
    max-width: 900px;
    animation: fadeUp 1.2s ease-out;
}
.hero h1 { margin-bottom: 1rem; }
.hero p { font-size: 1.4rem; max-width: 600px; margin: 0 auto 2.5rem; color: var(--text-muted); }
.primary-btn {
    background: var(--accent-primary);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-block;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(255,0,255,0.3);
}
.primary-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255,0,255,0.5);
    background: var(--accent-dark);
}

/* Sections */
.section {
    padding: 10rem 0;
    position: relative;
}
.section h2 {
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}
.card {
    background: var(--card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(255,0,255,0.2);
    border-color: var(--accent-primary);
}
.card img {
    width: 100%; height: 220px; object-fit: cover; border-radius: 1rem; margin-bottom: 1.5rem;
}

/* Portfolio Masonry */
.portfolio-masonry {
    column-count: 3;
    column-gap: 1.5rem;
}
.portfolio-item {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    cursor: pointer;
    transition: transform 0.5s ease;
}
.portfolio-item:hover {
    transform: scale(1.04);
    box-shadow: 0 20px 40px rgba(255,0,255,0.2);
}
.portfolio-item img {
    width: 100%;
    display: block;
    border-radius: 1.2rem;
}
.overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(10,14,42,0.9), transparent);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s;
}
.portfolio-item:hover .overlay {
    transform: translateY(0);
}
.portfolio-item h4 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.portfolio-item p { margin: 0; font-size: 1rem; color: #ddd; }

/* Contact Form */
form { display: grid; gap: 1.5rem; max-width: 600px; margin: 0 auto; }
input, textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 1.2rem;
    border-radius: 0.8rem;
    font-size: 1.1rem;
}
input:focus, textarea:focus { 
    border-color: var(--accent-primary); 
    outline: none; 
    box-shadow: 0 0 0 3px rgba(255,0,255,0.2); 
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    flex-direction: column;
}
.lightbox img { max-width: 90%; max-height: 80%; border-radius: 1rem; border: 8px solid var(--accent-primary); box-shadow: 0 0 60px rgba(255,0,255,0.4); }
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Footer */
footer {
    background: rgba(10,14,42,0.8);
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}
footer a:hover { color: var(--accent-primary); }

/* WhatsApp Floating Icon - Pulsing with pink glow */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(37,213,102,0.4);
    transition: transform 0.3s;
    z-index: 1000;
    animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.15); animation: none; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(37,213,102,0.5); } 50% { box-shadow: 0 0 0 20px rgba(37,213,102,0); } }
.fade-section { opacity: 0; transform: translateY(40px); transition: all 1s ease-out; }
.fade-section.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) { .portfolio-masonry { column-count: 2; } }
@media (max-width: 768px) {
    .hero { min-height: 80vh; }
    .section { padding: 6rem 0; }
    .portfolio-masonry { column-count: 1; }
}

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

footer a { color: var(--text-muted); transition: color 0.3s, transform 0.3s; }
footer a:hover { color: var(--accent-primary); transform: translateY(-3px); }
footer i { transition: transform 0.3s; }
footer a:hover i { transform: scale(1.2); }