:root {
    /* Premium Magazine Theme */
    --bg-dark: #d5d5cd;
    /* Greige background */
    --bg-card: #e4e3dc;
    --border-color: #bbbbb4;

    --text-primary: #1a1a1a;
    --text-secondary: #5a5a5a;

    /* Accents */
    --accent-main: #111111;
    --accent-secondary: #333333;
    --accent-glow: rgba(0, 0, 0, 0.05);

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-script: 'Playfair Display', serif;
    --font-bold: 'Oswald', sans-serif;

    /* Variables */
    --transition-fast: 0.15s ease-out;
    --transition-smooth: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-cursor: 0.1s ease-out;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.custom-cursor {
    width: 25px;
    height: 25px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    transform: translate(-50%, -50%);
    display: none;
    /* Hidden by default, shown by JS */
}

@media (pointer: fine) {
    .custom-cursor {
        display: block;
    }

    * {
        cursor: none !important;
    }
}

.custom-cursor.active {
    width: 60px;
    height: 60px;
    background: #fff;
}

.custom-cursor.link-hover {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* AI Chat Agent UI - Premium Redesign */
.ai-chat-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    height: 550px;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 10;
    transition: box-shadow 0.3s ease;
}

.ai-chat-container:hover {
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.cta-form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.chat-header {
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header .pulse {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.agent-name {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.chat-messages {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.2);
}

/* Custom Scrollbar */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.message {
    padding: 14px 20px;
    border-radius: 20px;
    max-width: 85%;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    animation: message-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

@keyframes message-pop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.bot-message {
    align-self: flex-start;
    background: #fff;
    color: #111;
    border-bottom-left-radius: 4px;
}

.user-message {
    align-self: flex-end;
    background: var(--accent-main);
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Chat Options Buttons */
.options-container {
    display: flex;
    gap: 10px;
    margin-top: 5px;
    align-self: flex-start;
    padding-left: 20px;
    animation: fadeIn 0.5s ease;
}

.option-btn {
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid var(--accent-main);
    background: #fff;
    color: var(--accent-main);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background: var(--accent-main);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* AI Status Badge */
.ai-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.1);
    color: #008855;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.ai-status-badge .pulse {
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff88;
    animation: status-pulse 1.5s infinite;
}

.agent-note {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 15px;
    opacity: 0.8;
}

/* Thinking Bubble Animation */
.thinking-bubble {
    color: #888;
    font-style: italic;
    font-size: 0.85rem;
    background: none !important;
    box-shadow: none !important;
    padding: 5px 18px !important;
}

.thinking-bubble::after {
    content: '...';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60% {
        content: '...';
    }

    80%,
    100% {
        content: '';
    }
}

/* Streaming/Typing Effect */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: #111;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.chat-input-area {
    padding: 20px;
    display: flex;
    gap: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

#chatInput {
    flex: 1;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 14px 20px;
    border-radius: 14px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#chatInput:focus {
    border-color: var(--accent-main);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.02),
        0 0 0 4px rgba(17, 17, 17, 0.05);
}

.chat-send-btn {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: var(--accent-main);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 1.2rem;
}

.chat-send-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(75, 181, 67, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(75, 181, 67, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(75, 181, 67, 0);
    }
}

.agent-note {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Background Effects (Removed for Minimalist look) */

/* Typography Utils */
@keyframes noise {

    0%,
    100% {
        transform: translate(0, 0);
    }

    10% {
        transform: translate(-5%, -5%);
    }

    20% {
        transform: translate(-10%, 5%);
    }

    30% {
        transform: translate(5%, -10%);
    }

    40% {
        transform: translate(-5%, 15%);
    }

    50% {
        transform: translate(-10%, 5%);
    }

    60% {
        transform: translate(15%, 0);
    }

    70% {
        transform: translate(0, 10%);
    }

    80% {
        transform: translate(-15%, 0);
    }

    90% {
        transform: translate(10%, 5%);
    }
}

.grain-overlay {
    position: fixed;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    width: 200%;
    height: 200%;
    background: transparent url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAAB7S56IAAAABlBMVEUAAAD///+l2Z/dAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5AgKCQ8mNSz+lAAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAWSURBVAjXY2CgCPyHAsP//w8D8///BwC+8By9u699IAAAAABJRU5ErkJggg==') repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 9998;
    animation: noise 0.5s infinite;
}

.title-bold,
.title-script {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.magazine-layout .hero-title-magazine span {
    display: block;
    transform: translateY(100%);
    animation: revealTitle 1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes revealTitle {
    to {
        transform: translateY(0);
    }
}

.magazine-layout .hero-title-magazine span:nth-child(1) {
    animation-delay: 0.2s;
}

.magazine-layout .hero-title-magazine span:nth-child(3) {
    animation-delay: 0.4s;
}

.magazine-layout .hero-title-magazine span:nth-child(5) {
    animation-delay: 0.6s;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-main), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 0;
    z-index: 100;
    background: transparent;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(213, 213, 205, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.text-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    font-family: var(--font-bold);
}

.lang-switcher {
    margin-left: auto;
    margin-right: 20px;
}

.lang-select {
    background: transparent;
    color: var(--text-primary);
    border: none;
    padding: 8px 12px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.lang-select:hover,
.lang-select:focus {
    color: var(--accent-main);
}

.lang-select option {
    background: var(--bg-dark);
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--accent-main);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* Buttons - Premium Silicon Valley Style */
.btn {
    padding: 12px 28px;
    border-radius: 99px;
    /* Pill shape */
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.2px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-main), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.full-width {
    width: 100%;
}

/* Premium Magazine Hero Section */
.hero-magazine {
    min-height: 100vh;
    padding-top: 150px;
    padding-bottom: 50px;
    background-color: var(--bg-dark);
}

.magazine-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    position: relative;
    max-width: 1300px;
}

.hero-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-intro {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.hero-title-magazine {
    line-height: 0.9;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.title-bold {
    font-family: var(--font-bold);
    font-size: clamp(3rem, 6vw, 6rem);
    letter-spacing: -2px;
    text-transform: uppercase;
}

.title-script {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-style: italic;
    font-weight: 500;
}

.hero-subtext {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-pill-dark {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--accent-main);
    color: #fff;
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    transition: var(--transition-fast);
}

.btn-pill-dark:hover {
    background-color: var(--accent-secondary);
}

.btn-pill-dark .arrow-right {
    background: #fff;
    color: #000;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 15px;
    font-size: 0.8rem;
}

.hero-center {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.portrait-oval-wrapper {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 3/4;
    border-radius: 200px;
    overflow: hidden;
    background-color: #c9c8c0;
    /* slightly darker greige behind photo */
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.magazine-portrait {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom;
    filter: grayscale(100%);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.2s ease-out;
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 40px;
    text-align: right;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-number {
    font-family: var(--font-main);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Buttons specific to Portfolio */
.btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-primary);
    color: var(--bg-card);
    padding: 12px 24px;
    border-radius: 99px;
    font-size: 0.95rem;
    font-family: var(--font-bold);
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-dark:hover {
    background-color: var(--text-secondary);
    color: var(--bg-dark);
}

/* Feature Grid */
.grid-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

.feature-col {
    padding: 30px 20px;
    border-right: 1px solid var(--border-color);
}

.feature-col:last-child {
    border-right: none;
}

.feature-title {
    font-family: var(--font-bold);
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Trusted By Section */
.trusted-by {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    background-color: transparent;
}

.trusted-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 600;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.trusted-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-secondary);
    opacity: 0.5;
    letter-spacing: -1px;
    transition: opacity 0.3s;
}

.trusted-text:hover {
    opacity: 1;
    color: var(--text-primary);
}

/* Scroll Animation Base */
.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Services Section */
.services {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    font-family: var(--font-bold);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.services-editorial {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    align-items: flex-start;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.service-row:first-child {
    border-top: 1px solid var(--border-color);
}

.service-row:hover {
    background-color: var(--bg-card);
    padding-left: 20px;
    padding-right: 20px;
}

.service-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-primary);
    width: 120px;
    flex-shrink: 0;
    line-height: 1;
    letter-spacing: -2px;
}

.service-info {
    flex-grow: 1;
}

.service-info h3 {
    font-size: 1.8rem;
    font-family: var(--font-bold);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.service-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.02), transparent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.brutal-card {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.brutal-card:hover .border-image {
    transform: scale(0.98);
}

.border-image {
    width: 100%;
    height: 350px;
    position: relative;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--text-primary);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.portfolio-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background-color: var(--bg-card);
    filter: grayscale(100%);
    transition: filter 0.4s ease;
}

.brutal-card:hover .portfolio-screenshot {
    filter: grayscale(0%);
}

.brutal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(213, 213, 205, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.brutal-card:hover .brutal-overlay {
    opacity: 1;
}

.brutal-content {
    padding: 20px 0;
}

.brutal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-family: var(--font-bold);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
}

.brutal-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.editorial-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    font-family: var(--font-bold);
}

.editorial-tags span {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 2px;
}

/* About Section */
.about {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.badge-brutalist {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--accent-main);
    color: var(--accent-main);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

.about-content h2 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-family: var(--font-bold);
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.about-content h2 span:first-child {
    font-family: var(--font-script);
    text-transform: none;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-style: italic;
    color: var(--text-secondary);
}

.role-title {
    color: var(--text-secondary);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 700px;
    color: var(--text-primary);
    font-weight: 400;
}

.skills-editorial {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    max-width: 800px;
}

.skill-item-text {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    font-family: var(--font-bold);
}

.skill-item-text:hover {
    background-color: var(--text-primary);
    color: var(--bg-card);
    border-color: var(--text-primary);
}

/* Global PNG Icon Sizing */
.png-icon {
    object-fit: contain;
}

.png-icon.lg {
    width: 64px;
    height: 64px;
}

.png-icon.sm {
    width: 24px;
    height: 24px;
    /* In case the background icon color needs to pop on dark mode */
    filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.4));
}

/* Founder Gallery Toggle */
.gallery-section {
    margin-top: 40px;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--accent-main);
    text-decoration: none;
    cursor: pointer;
}

#modalCaption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #fff;
    padding: 20px 0;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.gallery-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.founder-gallery {
    transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
}

.founder-gallery.hidden {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: rgba(0, 229, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 12px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5) 70%, transparent);
    color: var(--text-primary);
    transform: translateY(100%);
    transition: var(--transition-smooth);
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.gallery-caption p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* CTA Contact Section */
.cta {
    padding: 100px 0;
    position: relative;
}

.cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-content h2 {
    font-size: 3rem;
    font-family: var(--font-bold);
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.03);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: fit-content;
    transition: var(--transition-fast);
}

.contact-item:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.contact-item .icon,
.social-btn .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.contact-item:hover .icon,
.social-btn:hover .icon {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.1);
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.contact-link:hover {
    color: var(--accent-main);
}

.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.social-btn:hover {
    transform: translateY(-3px);
}

.phone-btn {
    background: rgba(0, 0, 0, 0.05);
}

.phone-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

.wapp-btn {
    background: rgba(37, 211, 102, 0.05);
    border-color: rgba(37, 211, 102, 0.2);
}

.wapp-btn:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25D366;
    color: #25D366;
}

.tg-btn {
    background: rgba(0, 136, 204, 0.05);
    border-color: rgba(0, 136, 204, 0.2);
}

.tg-btn:hover {
    background: rgba(0, 136, 204, 0.1);
    border-color: #0088cc;
    color: #0088cc;
}


.glass-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #fff;
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* Massive Footer Section */
.footer-massive {
    background-color: var(--text-primary);
    color: var(--bg-dark);
    padding: 100px 0 30px;
    margin-top: 100px;
}

.footer-massive a {
    color: var(--bg-dark);
}

.footer-massive .text-logo,
.footer-giant {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 500;
    line-height: 0.8;
    margin-bottom: 50px;
    color: var(--bg-dark);
    letter-spacing: -2px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 40px;
    font-family: var(--font-bold);
    text-transform: uppercase;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-info p {
    font-size: 1.5rem;
    max-width: 400px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    justify-content: space-around;
    gap: 40px;
}

.link-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    opacity: 0.5;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.link-col a {
    display: block;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.link-col a:hover {
    transform: translateX(5px);
}

.footer-bottom-brutal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .magazine-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-right {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .stat-block {
        align-items: center;
    }

    .grid-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-col {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        height: 300px;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-photo-placeholder {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .skills-grid {
        text-align: left;
    }

    .contact-info {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(9, 9, 11, 0.95);
        padding: 30px 20px;
        border-bottom: 1px solid var(--border-color);
        gap: 25px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .logo-img {
        height: 50px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
        overflow-x: hidden;
    }

    /* Premium mobile typography */
    body {
        font-size: 0.95rem;
    }

    .grid-features {
        grid-template-columns: 1fr;
    }

    .feature-col:last-child {
        border-bottom: none;
    }

    .hero-right {
        flex-direction: column;
        gap: 20px;
    }

    .footer-bottom-brutal {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .title-bold {
        font-size: clamp(2rem, 15vw, 4rem);
        margin-bottom: -5px;
        letter-spacing: -1px;
        width: 100%;
        text-align: center;
        word-break: break-word;
        line-height: 1;
    }

    .title-script {
        font-size: clamp(1.8rem, 12vw, 3.5rem);
        width: 100%;
        text-align: center;
        word-break: break-word;
        line-height: 1;
        margin-bottom: 10px;
    }

    .hero-magazine {
        padding-top: 100px;
    }

    .portrait-oval-wrapper {
        max-width: 250px;
        aspect-ratio: 3/4;
        margin: 20px auto;
    }

    .hero-subtext {
        text-align: center;
        margin: 0 auto 30px auto;
    }

    .footer-giant {
        font-size: clamp(2.5rem, 15vw, 5rem);
        padding-bottom: 20px;
    }

    .section-header h2,
    .about-content h2,
    .cta-content h2 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    /* Skills Grid - iOS Widget Style */
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .skill-item {
        padding: 12px;
        font-size: 0.8rem;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 14px;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    /* Mobile Services IDE Form */
    .service-row {
        flex-direction: column;
        padding: 30px 0;
    }

    .service-number {
        font-size: 2.5rem;
        margin-bottom: 10px;
    }

    /* Mobile Brutal Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .border-image {
        height: 250px;
    }

    .brutal-overlay {
        opacity: 1;
        /* Always show overlay gently on mobile */
        background: rgba(0, 0, 0, 0.7);
        align-items: flex-end;
        padding: 20px;
    }

    .brutal-content h3 {
        font-size: 1.2rem;
    }

    .brutal-content p {
        display: none;
        /* Hide description on mobile */
    }

    .footer-massive {
        padding: 60px 0 30px;
        margin-top: 60px;
    }

    .feature-col {
        padding: 20px 10px;
    }

    .founder-photo-placeholder {
        height: 250px;
        border-radius: 20px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .gallery-item {
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    }
}