/* --- Variables & Reset --- */
:root {
    --primary: #0EA5E9; /* Sky Blue */
    --primary-dark: #0284c7;
    --bg-dark: #0F172A;
    --bg-dark-alt: #1E293B;
    --text-dark: #F8FAFC;
    --text-muted-dark: #94A3B8;
    
    --bg-light: #F8FAFC;
    --bg-light-alt: #E2E8F0;
    --text-light: #0F172A;
    --text-muted-light: #475569;

    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow: 0 0 20px rgba(14, 165, 233, 0.3);
    
    --transition: all 0.3s ease;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-dark: #ffffff;
    --bg-dark-alt: #f0f4f8;
    --text-dark: #1e293b;
    --text-muted-dark: #64748b;
    --glass-bg: rgba(14, 165, 233, 0.05);
    --glass-border: rgba(14, 165, 233, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.highlight {
    color: var(--primary);
}

.gradient-text {
    background: linear-gradient(to right, var(--primary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-heading);
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.6);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 10px;
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(15, 23, 42, 0.8);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.8);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.logo .dot {
    color: var(--primary);
}

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

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

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

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

.pill {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted-dark);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.glow-bg {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
    border-radius: 50%;
}

.floating-img {
    width: 80%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.3));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.social-hero {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.social-hero i {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-hero i:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* --- Stats --- */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stat-card {
    text-align: center;
    padding: 30px 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

/* --- About --- */
.center-text {
    text-align: center;
    margin-bottom: 60px;
}

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

.about-card {
    padding: 40px;
    text-align: center;
    transition: var(--transition);
}

.about-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

.icon-lg {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* --- Services --- */
.bg-alt {
    background-color: var(--bg-dark-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 30px;
    transition: var(--transition);
    border-top: 3px solid transparent;
}

.service-card:hover {
    border-top: 3px solid var(--primary);
    transform: translateY(-5px);
}

.s-icon {
    width: 50px;
    height: 50px;
    background: rgba(14, 165, 233, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

/* --- Dual Layout (Lifestyle & Reading) --- */
.dual-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.dual-layout.reverse {
    flex-direction: row-reverse;
}

.dual-image {
    flex: 1;
    position: relative;
}

.dual-text {
    flex: 1;
}

.tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 15px;
}

.dual-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.dual-text p {
    color: var(--text-muted-dark);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.check-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-list i {
    color: var(--primary);
}

.glow-img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(14, 165, 233, 0.4));
}

.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: #6366f1;
    filter: blur(80px);
    opacity: 0.4;
    border-radius: 50%;
    z-index: 1;
}

.blob-blue {
    background: var(--primary);
}

/* --- Contact --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: rgba(14, 165, 233, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    padding: 50px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary);
}

.social-links-lg {
    margin-top: 30px;
}

.social-links-lg a {
    margin-right: 20px;
    font-weight: 600;
    border-bottom: 2px solid var(--primary);
}

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

input, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-dark);
    font-family: var(--font-body);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(14, 165, 233, 0.05);
}

.full-width {
    width: 100%;
}

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

.built-with i {
    color: #e11d48;
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    padding: 20px;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-150%);
    transition: var(--transition);
    display: flex;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu a {
    text-align: center;
    font-size: 1.2rem;
    padding: 10px;
}

/* --- Animation Classes --- */
.fade-in-up, .fade-in-left, .fade-in-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-left { transform: translateX(-30px); }
.fade-in-right { transform: translateX(30px); }

.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* --- Responsive & Mobile Queries --- */

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

    .hero-container, .dual-layout, .contact-wrapper {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
    }
    
    .dual-layout.reverse {
        flex-direction: column;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 20px;
    }
    
    .hero h1 { font-size: 3rem; }
    
    .hero-image { order: -1; margin-bottom: 30px; }
    
    .about-grid { grid-template-columns: 1fr; }
    
    .social-hero { justify-content: center; }
    
    .nav-links { display: none; }
    .hamburger { display: block; }
    
    .section-padding { padding: 60px 0; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; }
    
    .stats { 
        grid-template-columns: 1fr; 
        gap: 15px;
    }
    
    .dual-text h2 { font-size: 2rem; }
    
    .btn { width: 100%; margin: 10px 0 0 0; }
    
    .contact-info, .contact-form {
        padding: 30px 20px;
    }

    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 50px;
    }
    
    .floating-img { width: 90%; }
}