/* CSS Variables for Theme Management */
:root {
    /* Dark Theme (Default) */
    --bg-color: #0b0c10;
    --card-bg: #1f2833;
    --text-color: #ffffff;
    --text-muted: #c5c6c7;
    --primary-color: #66fcf1;
    --primary-hover: #45a29e;
    --secondary-color: #45a29e;
    --white: #ffffff;
    --nav-bg: rgba(11, 12, 16, 0.95);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

[data-theme="light"] {
    /* Light Theme */
    --bg-color: #f4f6f8;
    --card-bg: #ffffff;
    --text-color: #212529;
    --text-muted: #495057;
    --primary-color: #2c7be5;
    /* A vibrant blue for light mode */
    --primary-hover: #1a5cba;
    --secondary-color: #6c757d;
    --white: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Base Styles */
* {
    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-color);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #0b0c10;
    /* Dark text on primary color for contrast */
}

[data-theme="light"] .btn-primary {
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 252, 241, 0.3);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 4px 15px rgba(44, 123, 229, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #0b0c10;
    transform: translateY(-2px);
}

[data-theme="light"] .btn-secondary:hover {
    color: #fff;
}


/* Navbar */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: background-color var(--transition-speed);
}

/* Header background on scroll */
header.scrolled {
    background-color: var(--nav-bg);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 5px;
    transition: transform var(--transition-speed);
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle:hover {
    color: var(--primary-color);
    transform: rotate(15deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    /* Clean background - can add subtle gradient or pattern later */
}

/* Background decoration for hero */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(102, 252, 241, 0.1) 0%, rgba(11, 12, 16, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(44, 123, 229, 0.1) 0%, rgba(244, 246, 248, 0) 70%);
}


.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--text-color), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-muted);
    max-width: 600px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 20px;
}


/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border for dark mode */
}

[data-theme="light"] .service-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Founder Section */
.founder-card {
    display: flex;
    background-color: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    transition: background-color var(--transition-speed);
}

.founder-image {
    flex: 1;
    min-width: 300px;
    background-color: #2b3543;
    /* Fallback/Placeholder layout */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

[data-theme="light"] .founder-image {
    background-color: #e9ecef;
}


.placeholder-img {
    font-size: 5rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.founder-info {
    flex: 2;
    padding: 50px;
}

.founder-info h3 {
    font-size: 2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.founder-info .title {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.founder-info .bio {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.social-links a {
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    display: inline-block;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 252, 241, 0.1);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}


.contact-form button {
    width: 100%;
}

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: var(--card-bg);
}

[data-theme="light"] footer {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}


/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero h1,
.hero p,
.hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero h1 {
    animation-delay: 0.2s;
}

.hero p {
    animation-delay: 0.4s;
}

.hero-buttons {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hamburger Menu for Mobile */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* Responsive Design */
@media (max-width: 992px) {
    .founder-card {
        flex-direction: column;
    }

    .founder-image {
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        /* Adjust based on header height */
        flex-direction: column;
        background-color: var(--nav-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        margin: 0;
        width: 100%;
    }
}