:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

html {
    scroll-behavior: smooth;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

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

.btn-sm {
    background: var(--accent-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px var(--accent-glow);
    transition: transform 0.3s, box-shadow 0.3s !important;
}

.btn-sm:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.8);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.headline {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.headline .highlight {
    color: var(--accent-primary);
    background: linear-gradient(90deg, var(--accent-primary), #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px var(--accent-glow);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.9), 0 0 20px rgba(96, 165, 250, 0.6);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.9);
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.founder-message {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    max-width: 450px;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.founder-message strong {
    color: var(--text-primary);
    display: inline-block;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.image-glass-effect {
    position: relative;
    padding: 8px; /* Tighter padding for the square LED look */
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-radius: 16px; /* Modern square with slightly rounded corners */
    animation: ledPulse 2s infinite alternate ease-in-out;
}

/* The Animated Blue LED Effect */
@keyframes ledPulse {
    0% {
        box-shadow: 0 0 5px var(--accent-primary), inset 0 0 5px var(--accent-primary);
        border: 2px solid rgba(59, 130, 246, 0.4); 
    }
    100% {
        box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-primary), inset 0 0 10px var(--accent-primary);
        border: 2px solid rgba(96, 165, 250, 1); /* Brighter blue at peak */
    }
}

.profile-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px; /* Matches the outer container's curves */
    z-index: 2;
    position: relative;
    display: block; /* Removes bottom spacing issues on images */
}

.image-overlay {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%, rgba(59,130,246,0.1));
    z-index: 3;
    pointer-events: none;
}

/* Sections */
.section-padding {
    padding: 8rem 5%;
}

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

.text-center {
    text-align: center;
}

.dark-bg {
    background-color: var(--bg-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.about-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(45, 55, 72, 0.8);
}

.about-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
}

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

.service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease-out, box-shadow 0.2s ease-out;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    
    /* 3D and Scroll Animation Defaults */
    transform-style: preserve-3d;
    will-change: transform;
    opacity: 0;
    transform: translateY(50px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 2;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Base hover if JS tilt fails */
.service-card:hover {
    /* Transform handled dynamically by JS tracking mouse */
    border-color: rgba(96, 165, 250, 0.5);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.service-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.service-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-details {
    list-style: none;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
}

.service-details li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.service-details strong {
    color: var(--text-primary);
}

/* Contact Box */
.contact-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.email-link {
    display: inline-block;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
}

.email-link:hover {
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
    transform: scale(1.02);
}

.response-time {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .headline {
        font-size: 3rem;
    }
    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 10rem;
    }
    .hero-content {
        margin-bottom: 4rem;
    }
    .profile-img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .headline {
        font-size: 2.5rem;
    }
    .email-link {
        font-size: 1.5rem;
    }
    .section-padding {
        padding: 5rem 5%;
    }
}

/* Shooting Stars Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none; /* Allow clicks to pass right through to website */
    z-index: -2; /* Guarantee it stays securely behind everything */
    overflow: hidden;
}

.shooting-star {
    position: absolute;
    width: 150px; /* Trail length */
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(59, 130, 246, 0.8)); /* Matches accent color */
    border-radius: 50%;
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 1));
    animation: shooting linear infinite;
    opacity: 0;
}

/* The actual "star" head */
.shooting-star::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 1);
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0) rotate(-45deg);
        opacity: 0;
    }
    10% {
        opacity: 1; /* Fade in rapidly */
    }
    90% {
        opacity: 1; 
    }
    100% {
        /* Fall diagonally */
        transform: translateX(-1500px) translateY(1500px) rotate(-45deg);
        opacity: 0; 
    }
}
