:root {
    --bg-color: #121212;
    --surface-color: #1e1e1e;
    --surface-color-2: #252525;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #00bcd4;
    /* Cyan to match AI theme */
    --accent-hover: #00acc1;
    --border-color: #333;
    --font-main: 'Inter', sans-serif;
    --stone-texture: linear-gradient(145deg, #1e1e1e, #232323);
    /* Subtle stone-like gradient */
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
    /* Prevent fixed header from covering content */
}

/* Typography */
h1,
h2,
h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

h4 {
    color: var(--text-primary);
    margin-top: 2rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

h4 + p {
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
    /* Reduced from 2.5rem */
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

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

.section {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
    scroll-margin-top: 80px;
    /* Fix for fixed header obscuring titles */
}

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.content-split.reverse {
    /* No specific reverse needed for grid usually, but good for mobile if we change order */
    /* order handling in media query */
}

/* Header */
header {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 2rem;
    padding-right: 2rem;
}

.logo-container img {
    height: 50px;
    /* Adjust based on actual logo */
    width: auto;
}

/* Nav */
#nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden off-screen */
    width: 300px;
    height: 100vh;
    background: var(--surface-color);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease-in-out;
    padding-top: 5rem;
    display: flex;
    flex-direction: column;
}

#nav-menu.active {
    right: 0;
}

#nav-menu ul {
    list-style: none;
    width: 100%;
}

#nav-menu li {
    width: 100%;
}

#nav-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
}

#nav-menu a:hover {
    background: var(--surface-color-2);
    color: var(--accent-color);
}

/* Hamburger */
#hamburger {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#hamburger span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Hamburger animation state (optional, can add X transform here) */

/* Sections Specifics */
.experience-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.experience-list li {
    margin-bottom: 0.5rem;
}

.image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

#founder .image img {
    max-width: 25%;
    /* Reduced size for founder as requested */
    display: block;
}

#consulting .image img {
    max-width: 50%;
    /* Halved size as requested */
    margin: 0 auto;
    /* Center it in its column if smaller */
    display: block;
}

.hero-section {
    padding: 2rem 0;
    border-bottom: none;
    /* Optional: seamless blend */
}

.hero-logo {
    max-width: 60%;
    /* Large but responsive */
    height: auto;
    border-radius: 8px;
    /* Consistent look */
    margin: 0 auto 1rem auto;
    /* Center block element and add bottom spacing */
    display: block;
    /* Force new line */
}

.hero-title {
    font-size: 2.5rem;
    /* Restored to original size */
    color: #ffffff;
    border-bottom: none;
    /* Removed underline as requested */
    display: block;
    /* Take full width to ensure centering */
    text-align: center;
    /* Center text within the block */
    margin-top: 0.5rem;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.char-count {
    display: block;
    text-align: right;
    font-size: 0.8rem;
    margin-top: 0.2rem;
    color: var(--text-secondary);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

button[type="submit"] {
    background-color: var(--accent-color);
    color: #000;
    font-weight: 700;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.1s;
    width: 100%;
}

button[type="submit"]:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

button[type="submit"]:disabled {
    background-color: var(--surface-color-2);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 500px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .content-split {
        grid-template-columns: 1fr;
    }

    .content-split.reverse {
        display: flex;
        flex-direction: column-reverse;
    }

    .content-split .image {
        order: -1;
        /* Image first on mobile */
    }

    h1 {
        font-size: 1.8rem;
        /* Reduced from 2rem */
    }
}

.ai-tools-row {
    display: flex;
    gap: 2rem;
    margin: 0.5rem 0 0.75rem 0;
}

.ai-tool {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.ai-tool:hover {
    opacity: 1;
}

.ai-tool img {
    width: 40px;
    height: 40px;
}
