:root {
    --bg-color: #ffffff;
    --text-main: #111111;
    --accent-color: #4361EE; /* Electric Blue */
    --accent-light: #e2e7ff;
    --accent-alt: #FF4D4D; /* Vibrant Red for accents */
    --grid-color: #e5e5e5;
    --border-thick: 3px solid var(--text-main);
    --shadow-hard: 6px 6px 0px var(--accent-color);
    --shadow-hard-alt: 6px 6px 0px var(--text-main);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* FIXED: html, body overflow-x hidden forcefully stops white space on right side */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
    background-image: radial-gradient(var(--grid-color) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Reusable Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: inline-block;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background-color: var(--accent-light);
    z-index: -1;
    transform: rotate(-1deg);
}

/* --- TRUST LINE STYLING --- */
.trust-line {
    margin: 10px 0 35px 0; /* Perfect spacing between subtitle and buttons */
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: var(--border-thick); /* Matches your global thick borders */
    border-radius: 40px; /* Pill shape */
    background: var(--accent-light); /* Subtle background color */
    box-shadow: 4px 4px 0px var(--text-main); /* Hard brutalist shadow */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* --- SLIM SEO HIRE STRIP (Above the Fold) --- */
.hire-section-slim {
    margin: -10px auto 30px auto; /* Pulls it up closer to the hero section */
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.hire-strip {
    background: white;
    border: var(--border-thick);
    border-radius: 12px;
    padding: 20px 30px;
    box-shadow: 6px 6px 0px var(--accent-color); /* Tighter shadow to save vertical space */
    transition: all 0.3s ease;
    border-left: 8px solid var(--accent-color); /* Adds a nice color pop on the side */
}

.hire-strip:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px var(--accent-color);
}

.hire-strip-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.seo-heading {
    font-size: 20px; /* Kept smaller so it stays on one line on desktop */
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--text-main);
    flex: 1.2;
}

.hire-strip p {
    font-size: 15px;
    color: #555;
    margin: 0;
    font-weight: 600;
    text-align: right;
    flex: 1;
}

/* Mobile Adjustments */
@media (max-width: 900px) {
    .hire-strip-content {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .hire-strip p {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hire-section-slim {
        padding: 0 20px;
        margin-top: 10px;
    }
    .seo-heading {
        font-size: 18px;
        line-height: 1.3;
    }
    .hire-strip p {
        font-size: 14px;
    }
    .hire-strip {
        padding: 15px 20px;
        border-left: var(--border-thick); /* Resets the thick side border for mobile */
        border-top: 8px solid var(--accent-color); /* Moves the color pop to the top */
    }
}
.btn {
    padding: 14px 32px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    display: inline-block;
}

.btn-primary {
    background: var(--text-main);
    color: white;
    border: 2px solid var(--text-main);
    box-shadow: 4px 4px 0px var(--accent-color);
}

.btn-primary:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px var(--accent-color);
}

/* Animations */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
    gap: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid var(--text-main);
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70vh;
}

.hero-text { flex: 1; position: relative; z-index: 10; animation: slideUpFade 0.8s ease-out forwards; }

.annotation { position: absolute; top: -40px; left: 10px; display: flex; align-items: center; gap: 10px; }
.handwritten { font-family: 'Caveat', cursive; color: var(--accent-color); font-size: 28px; transform: rotate(-4deg); }

h1 { font-size: 72px; font-weight: 700; line-height: 1.05; margin-bottom: 24px; letter-spacing: -2px; }
.spinning-star { display: inline-block; color: var(--accent-color); animation: spin 6s linear infinite; font-size: 60px; vertical-align: middle; margin-left: 10px; }
p.subtitle { font-size: 20px; color: #444; line-height: 1.5; margin-bottom: 40px; max-width: 450px; font-weight: 500; }

.hero-buttons { display: flex; gap: 15px; }

.hero-image-container {
    flex: 1; position: relative; display: flex; justify-content: center; animation: slideUpFade 0.8s ease-out 0.2s forwards;
}

.profile-img-placeholder {
    width: 340px; 
    height: 460px;  
    border: var(--border-thick);
    border-radius: 170px 170px 0 0; 
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #888; font-weight: 600; position: relative; z-index: 2;
    box-shadow: -15px 15px 0px var(--accent-light); transition: transform 0.3s ease; background-size: cover; background-position: center;
    background-image: url("IMAGES/MYPHOTO.webp");
}

.floating-tag {
    position: absolute; z-index: 3; background: white; border: 2px solid var(--text-main);
    border-radius: 30px; padding: 10px 20px; font-weight: 700; font-size: 14px;
    box-shadow: 3px 3px 0px var(--text-main); display: flex; align-items: center; gap: 8px;
    animation: float 4s ease-in-out infinite;
}
.tag-1 { top: 40px; left: 0px; transform: rotate(-5deg); }
.tag-2 { bottom: 60px; right: -20px; transform: rotate(5deg); animation-delay: 1.5s; background: var(--accent-color); color: white; }
.tag-3 { top: 150px; right: -30px; width: 80px; height: 80px; border-radius: 50%; display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--text-main); color: white; padding: 0; animation: float 5s ease-in-out infinite reverse; }
.tag-3 span { font-size: 10px; text-transform: uppercase; }
.tag-3 .num { font-size: 24px; line-height: 1; }

@keyframes float {
    0% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
    50% { transform: translateY(-12px) rotate(var(--rot, 0deg)); }
    100% { transform: translateY(0px) rotate(var(--rot, 0deg)); }
}

/* Stats Strip */
.stats-wrapper { margin-top: 40px; padding-bottom: 20px; }
.stats-strip {
    background: white; border: var(--border-thick); border-radius: 16px;
    display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: 8px 8px 0px var(--accent-light); overflow: hidden;
}
.stat-item { text-align: center; padding: 40px 20px; transition: background 0.3s; }
.stat-item:hover { background: var(--accent-light); }
.stat-item:not(:last-child) { border-right: var(--border-thick); }
.stat-number { font-size: 54px; font-weight: 700; color: var(--accent-color); margin-bottom: 5px; letter-spacing: -1px; }
.stat-label { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Moving Clients Marquee */
.clients-section {
    padding: 40px 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.clients-section p {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 30px;
}
.clients-marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.clients-marquee-container::before,
.clients-marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
}
.clients-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color), transparent);
}
.clients-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color), transparent);
}
.clients-track {
    display: inline-flex;
    gap: 60px;
    animation: scroll-clients 25s linear infinite;
}
.client-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    opacity: 0.7;
    transition: opacity 0.3s;
}
.client-name:hover {
    opacity: 1;
    color: var(--accent-color);
}

@keyframes scroll-clients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background: white;
    border: var(--border-thick);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: var(--shadow-hard);
}

.project-card:nth-child(even):hover {
    box-shadow: 6px 6px 0px var(--accent-alt);
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-info {
    padding: 24px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border: 2px solid var(--text-main);
    border-radius: 20px;
    text-transform: uppercase;
}

.project-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.more-work-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 40px; 
    width: 100%;
    padding-bottom: 20px; 
}

/* Services Section */
.services-section {
    background-color: var(--text-main);
    color: white;
    padding: 100px 0;
    margin: 60px 0;
    border-top: 4px solid var(--accent-color);
    border-bottom: 4px solid var(--accent-color);
}

.services-section .section-title { color: white; }
.services-section .section-title::after { background-color: var(--accent-color); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--text-main);
    border: 2px solid rgba(255,255,255,0.2);
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.3s;
}

.service-card:hover {
    background: white;
    color: var(--text-main);
    transform: translateY(-10px);
    box-shadow: -8px 8px 0px var(--accent-color);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.service-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-desc {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Funky Marquee */
.marquee-wrapper {
    padding: 40px 0;
    background: var(--accent-light);
    border-top: 3px solid var(--text-main);
    border-bottom: 3px solid var(--text-main);
    overflow: hidden;
    display: flex;
    white-space: nowrap;
}

.marquee {
    display: inline-flex;
    gap: 40px;
    animation: marquee 20s linear infinite;
}

.marquee-item {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    -webkit-text-stroke: 1px var(--text-main);
    color: transparent;
    display: flex;
    align-items: center;
    gap: 40px;
}

.marquee-item.filled { color: var(--text-main); -webkit-text-stroke: 0; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* Contact Section */
.contact-box {
    background: white;
    border: var(--border-thick);
    border-radius: 16px;
    padding: 80px 40px;
    text-align: center;
    box-shadow: 12px 12px 0px var(--accent-color);
    margin-bottom: 20px;
}

.contact-box h2 {
    font-size: 54px;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.contact-box p {
    font-size: 20px;
    margin-bottom: 40px;
    color: #555;
}

/* FAQ Section */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto 60px auto;
}

.faq-item {
    background: white;
    border: var(--border-thick);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 4px 4px 0px var(--grid-color);
    transition: box-shadow 0.2s;
}

.faq-item:hover {
    box-shadow: 4px 4px 0px var(--accent-color);
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--accent-color);
    font-weight: 700;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 24px 24px 24px;
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 2px solid var(--grid-color);
    font-weight: 500;
    background: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive - Base adjustments */
@media (max-width: 900px) {
    .hero { flex-direction: column; text-align: center; gap: 40px; }
    
    /* FIXED: Increases top padding to give the annotation enough room */
    .hero-text { padding-top: 80px; } 
    
    h1 { font-size: 54px; }
    
    /* FIXED: Moves the annotation safely into the padded space, so it's not hidden behind nav */
    .annotation { left: 50%; transform: translateX(-50%); top: 10px; } 
    
    p.subtitle { margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-image-container { width: 100%; margin-top: 40px; }
    .stats-strip { grid-template-columns: 1fr; }
    .stat-item:not(:last-child) { border-right: none; border-bottom: var(--border-thick); }
    .services-grid { grid-template-columns: 1fr; }
    .contact-box h2 { font-size: 40px; }
}

/* Mobile Specific Adjustments for phone screens */
@media (max-width: 600px) {
    .container {
        padding: 0 20px; 
    }
    
    .hero-text {
        padding-top: 90px; 
    }

    h1 {
        font-size: 42px; 
        margin-top: 15px;
    }
    
    .profile-img-placeholder {
        width: 100%; 
        max-width: 300px; /* Slightly narrower to give tags more breathing room */
        min-width: 260px; 
        flex-shrink: 0; 
        height: 380px;
    }
    
    /* FIXED: Tags use percentages (relative to container) and are scaled down slightly so they don't hit screen edge */
    .tag-1 { 
        left: 5%; 
        top: 30px; 
        transform: rotate(-5deg) scale(0.9); 
    }
    
    .tag-2 { 
        right: 5%; 
        bottom: 30px; 
        transform: rotate(5deg) scale(0.9); 
    }
    
    .tag-3 { 
        right: 2%; 
        top: 100px; 
        transform: scale(0.8); 
    }
    
    .hero-buttons {
        flex-direction: column; 
        width: 100%;
        gap: 15px;
    }
    
    .hero-buttons .btn {
        width: 100%; 
    }
    
    .clients-track {
        gap: 30px; 
    }
    
    nav {
        gap: 15px; 
        flex-wrap: wrap; 
        padding: 15px 0;
    }

    .more-work-container {
        margin-top: 40px; 
        margin-bottom: 20px; 
    }
}
