:root {
    --bg-color: #030000;
    --text-primary: #ffffff;
    --text-muted: #a89f9f;
    --accent: #ff2a2a;
    
    /* Apple Liquid Glass Variables */
    --card-bg: rgba(20, 10, 10, 0.4);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(24px) saturate(180%);
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background elements */
#particle-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -2;
}

.bg-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at 80% 20%, rgba(200, 0, 0, 0.12) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(150, 0, 0, 0.08) 0%, transparent 50%),
                radial-gradient(circle at center, transparent 0%, var(--bg-color) 100%);
    z-index: -1;
    pointer-events: none;
}

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

/* Typography */
h1, h2, h3 { font-weight: 800; }
.section-heading {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 1rem;
    display: inline-block;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 1.5rem 0;
}
#navbar.scrolled {
    background: rgba(5, 0, 0, 0.65);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 5%;
    display: flex; justify-content: space-between; align-items: center;
}
.logo {
    color: var(--accent);
    font-weight: 800; font-size: 1.5rem;
    text-decoration: none; letter-spacing: 2px;
}
.nav-links { list-style: none; display: flex; gap: 2.5rem; }
.nav-links li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    transition: color 0.3s;
}
.nav-links li a:hover { color: var(--accent); }

.btn-neon {
    background: rgba(255, 42, 42, 0.15);
    border: 1px solid rgba(255, 42, 42, 0.5);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--accent);
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none; font-weight: 800; font-size: 0.85rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
}
.btn-neon:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 25px rgba(255, 42, 42, 0.6);
    transform: translateY(-2px);
}
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-primary); }

/* Sections */
.section { padding: 6rem 0; min-height: auto; }

/* Hero Section */
.hero-section { padding-top: 12rem; min-height: 100vh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-title { font-size: 5.5rem; line-height: 1.1; margin-bottom: 1rem; letter-spacing: -2px; }
.hero-subtitle { font-size: 1.5rem; color: var(--accent); margin-bottom: 1.5rem; font-weight: 600; }
.cursor { display: inline-block; width: 3px; animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.hero-bio { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1.5rem; margin-bottom: 3rem; }

.ghost-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none; font-size: 0.9rem; font-weight: 600; letter-spacing: 1px;
    transition: all 0.3s ease; cursor: pointer; text-align: center;
}
.ghost-btn:hover {
    background: rgba(255, 42, 42, 0.15);
    border-color: rgba(255, 42, 42, 0.4);
    color: var(--accent);
    transform: translateY(-2px);
}
.small-btn { display: inline-block; padding: 0.5rem 1.2rem; font-size: 0.8rem; margin-top: 1.5rem; }
.recognized-by { color: var(--text-muted); font-size: 0.9rem; }
.tech-icons { display: flex; gap: 1.5rem; margin-top: 1rem; font-size: 1.5rem; color: var(--text-primary); }

/* Liquid Glass Cards */
.profile-card { position: relative; max-width: 400px; margin: 0 auto; }
.image-wrapper { position: relative; z-index: 2; border-radius: 20px; overflow: hidden; }
.image-wrapper img { width: 100%; height: auto; display: block; filter: grayscale(10%) contrast(1.1); transition: filter 0.3s ease; }
.image-wrapper:hover img { filter: grayscale(0%); }
.trusted-badge {
    position: absolute; bottom: 15px; right: 15px;
    background: rgba(10, 0, 0, 0.5);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    padding: 8px 15px; border-radius: 20px;
    font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.card-border {
    position: absolute; top: -15px; right: -15px; width: 100px; height: 100px;
    border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); z-index: 1;
}
.profile-card::before {
    content: ''; position: absolute; bottom: -15px; left: -15px; width: 100px; height: 100px;
    border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); z-index: 1;
}

/* About Section */
.about-text { font-size: 1.15rem; color: var(--text-muted); max-width: 800px; }
.about-text strong { color: var(--text-primary); }

/* Expertise / Services Grid */
.expertise-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

/* Standard Liquid Glass Card */
.expertise-card, .project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.expertise-card::before, .project-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: transparent; transition: background 0.3s ease;
}
.expertise-card:hover, .project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 42, 42, 0.3);
    box-shadow: 0 15px 35px rgba(255, 42, 42, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.expertise-card:hover::before, .project-card:hover::before { background: var(--accent); }

.exp-icon { font-size: 2rem; color: var(--accent); margin-bottom: 1.5rem; }
.expertise-card h3, .project-card h3 { margin-bottom: 1rem; font-size: 1.3rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.project-card h3 i { margin-right: 10px; color: var(--text-muted); }
.expertise-card p, .project-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.pill-container { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--card-border);
    padding: 5px 12px; border-radius: 15px; font-size: 0.8rem; color: #cbd5e1;
}

/* Contact Section & Form */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.contact-text p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-links a { color: var(--text-primary); text-decoration: none; font-size: 1.1rem; display: flex; align-items: center; gap: 15px; transition: color 0.3s; }
.contact-links a:hover { color: var(--accent); }
.contact-links i { color: var(--accent); font-size: 1.5rem; }

.secure-contact-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex; flex-direction: column; gap: 1.5rem;
}
.input-group { display: flex; flex-direction: column; gap: 0.5rem; position: relative; }
.input-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px;}
.secure-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 1.2rem; color: var(--text-primary);
    font-family: var(--font-main); border-radius: 12px;
    transition: all 0.3s ease; font-size: 0.95rem;
}
.secure-input::placeholder { color: #5a5a5a; }
.secure-input:focus { outline: none; border-color: rgba(255, 42, 42, 0.6); box-shadow: 0 0 15px rgba(255, 42, 42, 0.15); }

/* Intl Tel Input Theme Overrides for Apple Glass */
.iti { width: 100%; }
.iti__flag-container { border-radius: 12px 0 0 12px; }
.iti__selected-flag { background-color: rgba(15, 0, 0, 0.6) !important; border-right: 1px solid rgba(255,255,255,0.08); }
.iti__selected-flag:hover { background-color: rgba(255, 42, 42, 0.1) !important; }
.iti__country-list {
    background: rgba(20, 10, 10, 0.9);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    border-radius: 12px; margin-top: 5px;
}
.iti__country-list .iti__country.iti__highlight { background-color: rgba(255, 42, 42, 0.2); }
.iti__country-list .iti__dial-code { color: var(--text-muted); }
.iti__arrow { border-top-color: var(--text-muted); }
.iti__arrow.iti__arrow--up { border-bottom-color: var(--text-muted); }
.iti__search-input {
    background: rgba(0,0,0,0.5); border: 1px solid var(--card-border);
    color: var(--text-primary); padding: 8px; border-radius: 8px;
}

.textarea-field { resize: vertical; min-height: 120px; }
.char-counter { text-align: right; font-size: 0.75rem; color: #5a5a5a; margin-top: 0.5rem; font-family: monospace; }
.secure-submit-btn {
    width: 100%; margin-top: 1rem;
    background: linear-gradient(135deg, #ff2a2a, #b30000);
    color: #fff; padding: 1.2rem;
    border-radius: 30px; border: none; font-weight: 800; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; box-shadow: 0 8px 25px rgba(255, 42, 42, 0.4);
    transition: all 0.3s ease;
}
.secure-submit-btn:hover { box-shadow: 0 12px 35px rgba(255, 42, 42, 0.6); transform: translateY(-2px); }

/* Footer */
footer { border-top: 1px solid var(--card-border); padding: 2rem 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* Interactivity & Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Mobile Responsive */
@media (max-width: 900px) {
    .nav-links, .btn-neon { display: none; }
    .hamburger { display: block; }
    .nav-links.nav-active {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--card-bg); padding: 2rem;
        border-bottom: 1px solid var(--card-border);
    }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .hero-title { font-size: 3.5rem; }
    .hero-actions { justify-content: center; }
    .hero-bio { margin: 0 auto 2.5rem; }
    .recognized-by { display: flex; flex-direction: column; align-items: center; }
    .contact-grid { grid-template-columns: 1fr; }
}
