/*
Theme Name: CreativeGraft One Page Draft
Theme URI: https://creativegraft.in
Author: CreativeGraft
Author URI: https://creativegraft.in
Description: Draft refresh of the CreativeGraft homepage for review.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

/* --- THEME DESIGN TOKENS --- */
:root {
    --primary: #7C5CFF;       
    --primary-hover: #6849E3;
    --secondary: #FF5C6C;     
    --accent-cyan: #3DB9C8;   
    --bg-base: #0B0D12;
    --bg-surface: #121521;
    --bg-card: #15192A;
    --border-color: #1E2335;
    --text-main: #FFFFFF;
    --text-muted: #9CA3AF;
    --container-width: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: var(--container-width); margin: 0 auto; padding: 0 24px; width: 100%; }
section { padding: 80px 0; position: relative; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); text-align: center; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
.text-gradient { background: linear-gradient(to right, var(--primary), var(--accent-cyan)); -webkit-background-clip: text; color: transparent; }
.section-marker { height: 4px; width: 80px; background: var(--primary); margin: 1.5rem 0; border-radius: 2px; }

/* --- Header --- */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 15px 0;
    background: rgba(11, 13, 18, 0.9); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 40px; width: auto; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.05); }

.main-nav ul { display: flex; gap: 30px; list-style: none; }
.main-nav a { font-size: 0.85rem; font-weight: 500; text-transform: uppercase; color: #e0e0e0; text-decoration: none; letter-spacing: 1px; }

.header-cta { display: flex; align-items: center; gap: 20px; }
.call-link { color: var(--primary); display: flex; align-items: center; transition: 0.3s; }
.call-link:hover { color: #fff; transform: scale(1.1); }

/* --- Mobile Menu Styles --- */
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1002; color: #fff; }
.mobile-toggle span { display: block; width: 25px; height: 2px; background-color: currentColor; margin: 5px 0; transition: 0.3s; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Ensure cloned mobile icons are hidden on desktop */
.mobile-cta-container { display: none; }

@media (max-width: 1024px) {
    .site-header { padding: 10px 0; background: #0B0D12; backdrop-filter: none; -webkit-backdrop-filter: none; }
    
    /* Header Layout: Logo (Left) ... Icons + Hamburger (Right) */
    .header-inner {
        justify-content: flex-end; /* Align right */
    }
    
    .logo {
        margin-right: auto; /* Push logo to far left */
        order: 1;
        position: relative;
        z-index: 1003;
    }

    /* Show Icons in Header */
    .header-cta { 
        display: flex !important; /* Ensure visible */
        order: 2;
        gap: 15px;
        margin-right: 15px;
    }

    /* Reorder Icons: WhatsApp First, Call Second */
    .header-cta a[aria-label="WhatsApp"] { order: 1; }
    .header-cta a:not([aria-label="WhatsApp"]) { order: 2; }

    /* Hamburger Menu */
    .mobile-toggle { 
        display: block; 
        order: 3;
    }
    
    /* Hide the duplicate icons inside the nav drawer */
    .main-nav .mobile-cta-container { display: none !important; }
    
    .main-nav {
        position: fixed; inset: 0; width: 100vw; height: 100dvh; padding: 80px 24px 24px; overflow-y: auto; background: #0B0D12; backdrop-filter: none;
        display: flex; flex-direction: column; justify-content: center; align-items: center;
        transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
    }
    .main-nav.active { transform: translateX(0); }
    
    .main-nav ul { flex-direction: column; gap: 30px; text-align: center; margin-bottom: 0; }
    .main-nav a { font-size: 1.5rem; font-weight: 600; }
}

/* --- Hero Section --- */
.hero-section { 
    min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; 
    position: relative; overflow: hidden; background: #0B0D12;
}
.hero-bg-blobs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-blob-1 { position: absolute; top: -10%; right: -5%; width: 600px; height: 600px; background: rgba(124, 92, 255, 0.12); border-radius: 50%; filter: blur(120px); }
.hero-blob-2 { position: absolute; bottom: -10%; left: -10%; width: 500px; height: 500px; background: rgba(61, 185, 200, 0.08); border-radius: 50%; filter: blur(100px); }

.hero-badge {
    display: inline-block; padding: 6px 18px; background: rgba(61,185,200, 0.08); 
    color: var(--accent-cyan); border-radius: 20px; font-size: 0.75rem; 
    margin-bottom: 2.5rem; font-weight: 700; border: 1px solid rgba(61, 185, 200, 0.15);
    letter-spacing: 1px;
}
.hero-content h1 { margin-bottom: 1.5rem; font-weight: 800; }
.hero-content p { color: var(--text-muted); max-width: 650px; margin: 0 auto 2.5rem; font-size: 1.1rem; }
.hero-content { width: min(100% - 36px, 920px); position: relative; z-index: 1; }
.hero-content h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.hero-content .hero-proof { font-size: 0.82rem; letter-spacing: 0.02em; margin: 2rem auto 0; color: #b6c2d6; }
.hero-proof span { color: var(--accent-cyan); padding: 0 0.55rem; }

.hero-buttons { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.85rem; }
.hero-buttons .btn-outline { margin-left: 0; }
.hero-buttons .btn-primary { gap: 0.55rem; }
.hero-work-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1.15rem; color: #c9d5ea; font-size: 0.9rem; font-weight: 600; text-underline-offset: 4px; }
.hero-work-link:hover { color: #fff; }
.hero-content .hero-proof { margin-top: 1.35rem; }
@media (max-width: 700px) {
    .hero-section { padding: 90px 0 70px; }
    .hero-badge { margin-bottom: 1rem; }
    .hero-content h1 { font-size: clamp(1.9rem, 8vw, 2.5rem); margin-bottom: 1rem; }
    .hero-content p { font-size: 0.95rem; margin-bottom: 1.25rem; }
    .hero-buttons { flex-direction: column; width: min(100%, 320px); margin: 0 auto; }
    .hero-buttons .btn { width: 100%; }
    .hero-content .hero-proof { margin-top: 1.25rem; }
}

.scroll-indicator {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    cursor: pointer; z-index: 10; opacity: 0.5;
}
.mouse-icon { width: 22px; height: 36px; border: 2px solid #fff; border-radius: 12px; position: relative; }
.mouse-wheel { width: 3px; height: 3px; background: var(--primary); border-radius: 50%; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); animation: scroll-down 2s infinite; }
@keyframes scroll-down { 0% { top: 8px; opacity: 0; } 30% { opacity: 1; } 100% { top: 22px; opacity: 0; } }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 30px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; text-decoration: none; border: none; }
.btn-primary { background-color: var(--primary); color: #fff; box-shadow: 0 0 15px rgba(124, 92, 255, 0.4); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 0 25px rgba(124, 92, 255, 0.6); }
.btn-outline { background: transparent; border: 1px solid #333; color: #fff; margin-left: 15px; }
.btn-outline:hover { border-color: var(--primary); background: rgba(124, 92, 255, 0.05); }

/* --- About Section --- */
.about-section { background: var(--bg-surface); }
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 5rem; align-items: start; }
.about-text h2 { margin-bottom: 2rem; text-align: left; }
.about-text p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 1.5rem; line-height: 1.7; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.stat-item .stat-number { font-size: 3.5rem; font-weight: 800; display: block; color: #fff; line-height: 1; margin-bottom: 0.5rem; }
.stat-item .stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; font-weight: 600; letter-spacing: 1px; }

.awards-card { 
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; 
    display: flex; gap: 1.5rem; align-items: flex-start;
    border-left: 4px solid var(--secondary); transition: 0.3s;
}
.awards-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.award-icon { font-size: 2.5rem; }
.award-content h4 { font-size: 1.1rem; color: #fff; margin-bottom: 0.5rem; }
.award-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.award-link { color: var(--secondary); font-weight: 700; text-decoration: none; font-size: 0.85rem; }

/* --- Work Section --- */
.work-title-area { text-align: center; margin-bottom: 50px; }
.featured-web-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-bottom: 1.25rem; }
.featured-web-card { background: linear-gradient(145deg, #1b2035, #121521 65%); border: 1px solid #30384e; border-radius: 20px; padding: clamp(1.5rem, 3vw, 2.5rem); min-height: 265px; display: flex; flex-direction: column; align-items: flex-start; }
.featured-web-meta { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; color: var(--accent-cyan); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.11em; }
.featured-web-meta span { color: #b2bed3; font-weight: 500; letter-spacing: normal; }
.featured-web-card h3 { margin: 1.3rem 0 0.75rem; font-size: clamp(1.4rem, 2vw, 2rem); }
.featured-web-card p { color: var(--text-muted); max-width: 48ch; margin-bottom: 1.5rem; }
.featured-web-card a { margin-top: auto; color: #b1a2ff; font-weight: 700; text-decoration: none; }
.featured-web-card a:hover, .featured-web-more a:hover, .service-card a:hover { color: #fff; text-decoration: underline; }
.featured-web-more { text-align: center; color: var(--text-muted); margin: 0 0 3.5rem; }
.featured-web-more a, .service-card a { color: #b1a2ff; font-weight: 700; text-decoration: none; }
.website-offer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin: 0 0 3.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid rgba(124, 92, 255, 0.4); border-radius: 20px; background: linear-gradient(115deg, rgba(124, 92, 255, 0.18), rgba(61, 185, 200, 0.08)); }
.website-offer-copy { max-width: 58ch; }
.website-offer-kicker { color: var(--accent-cyan); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; }
.website-offer h3 { margin: 0.65rem 0 0.5rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.website-offer p { color: var(--text-muted); line-height: 1.6; }
.website-offer-link { flex-shrink: 0; gap: 0.6rem; white-space: nowrap; }
@media (max-width: 700px) { .website-offer { flex-direction: column; align-items: stretch; text-align: center; gap: 1.35rem; } .website-offer-link { width: 100%; white-space: normal; } }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.work-category-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px; overflow: hidden; cursor: pointer; transition: 0.3s; }
.work-category-card:hover { border-color: var(--primary); transform: translateY(-5px); }
.cat-thumb { height: 200px; width: 100%; background-size: cover; background-position: center; transition: 0.6s; }
.work-category-card:hover .cat-thumb { transform: scale(1.05); }
.cat-content { padding: 1.5rem; }
.cat-title { font-size: 1.25rem; color: #fff; margin-bottom: 0.5rem; }
.cat-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.cat-link { color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }

/* --- Expertise Section --- */
.expertise-title { text-align: center; margin-bottom: 4rem; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card { background: var(--bg-card); padding: 2.5rem; border-radius: 20px; border: 1px solid var(--border-color); transition: 0.3s; position: relative; }
.service-card:hover { border-color: var(--primary); transform: translateY(-5px); background: #1A2036; }
.service-icon { width: 45px; height: 45px; background: rgba(255,255,255,0.02); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.5rem; border: 1px solid var(--border-color); }
.service-card h3 { font-size: 1.4rem; color: #fff; margin-bottom: 1rem; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; line-height: 1.6; }
.service-card a { display: inline-block; margin-top: 1.25rem; font-size: 0.87rem; }

/* --- CONTACT SECTION (Updated to match reference) --- */
.contact-container { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
    max-width: 1100px; margin: 0 auto; align-items: start;
    background: transparent; box-shadow: none; border: none; padding: 0;
}

.contact-left h3 { font-size: 1.5rem; font-weight: 600; line-height: 1.4; color: #E0E7FF; margin-bottom: 2.5rem; max-width: 450px; }
.contact-left .contact-intro { color: var(--text-muted); margin: -1.5rem 0 2.5rem; max-width: 45ch; }

.contact-info-list { display: flex; flex-direction: column; gap: 2rem; }

.contact-row { display: flex; align-items: center; gap: 1.25rem; text-decoration: none; transition: 0.3s; }
.contact-row:hover .contact-row-icon { background: var(--primary); color: #fff; }

.contact-row-icon { 
    width: 48px; height: 48px; background: #1E2335; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; color: var(--primary); 
    font-size: 1.25rem; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05);
}

.contact-row-text .label { display: block; font-size: 0.8rem; color: #6B7280; margin-bottom: 2px; }
.contact-row-text .value { display: block; font-size: 1.1rem; font-weight: 600; color: #fff; }

/* Divider */
.contact-divider { height: 1px; background: #1E2335; margin: 2.5rem 0; width: 100%; }

/* Follow Me */
.follow-me h4 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 1.25rem; }
.social-icons-group { display: flex; gap: 1rem; }
.social-btn { 
    width: 40px; height: 40px; background: #1E2335; border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; color: #9CA3AF; 
    text-decoration: none; transition: 0.3s; border: 1px solid rgba(255,255,255,0.05);
}
.social-btn:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* Form Styling */
.contact-form-card { 
    background: #0E121D; padding: 2.5rem; border-radius: 20px; 
    border: 1px solid #1E2335; box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: #9CA3AF; margin-bottom: 10px; }

.form-input { 
    width: 100%; background: #15192A; border: 1px solid #1E2335; 
    padding: 14px 18px; border-radius: 10px; color: #fff; font-family: inherit; 
    font-size: 0.95rem; transition: 0.3s;
}
.form-input:focus { border-color: var(--primary); outline: none; background: #1A1F35; }
.form-input::placeholder { color: #4B5563; }

.btn-send { 
    width: 100%; background: var(--primary); color: #fff; font-weight: 700; 
    padding: 16px; border-radius: 10px; border: none; cursor: pointer; 
    font-size: 1rem; transition: 0.3s; margin-top: 1rem;
}
.btn-send:hover { background: var(--primary-hover); transform: scale(1.02); }

/* --- Cursor Glow --- */
.cursor-glow { 
    position: fixed; top: 0; left: 0; width: 600px; height: 600px; 
    background: radial-gradient(circle, rgba(124, 92, 255, 0.12) 0%, transparent 70%); 
    transform: translate(-50%, -50%); pointer-events: none; z-index: 9998; 
    mix-blend-mode: screen; opacity: 0; transition: opacity 0.5s ease;
}

/* --- Gallery Overlay System --- */
.overlay-modal { position: fixed; inset: 0; background: rgba(11, 13, 18, 0.98); z-index: 9999; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: 0.3s; }
.overlay-modal.active { opacity: 1; visibility: visible; }
.overlay-header { padding: 20px 40px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background: #0B0D12; }
.close-btn { background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

.gallery-scroll-area { flex: 1; overflow-y: auto; padding-bottom: 50px; }
.gallery-grid { display: grid; gap: 20px; max-width: 1400px; margin: 40px auto; grid-template-columns: repeat(4, 1fr); padding: 0 40px; }
.gallery-item { background: var(--bg-card); border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1/1; border: 1px solid var(--border-color); position: relative; transition: transform 0.3s; }
.gallery-item:hover { transform: scale(1.02); border-color: var(--primary); }
.gallery-item.video-type { aspect-ratio: 16/9; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.lightbox-view { position: fixed; inset: 0; background: rgba(0,0,0,0.96); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; }
.lightbox-view.active { opacity: 1; visibility: visible; }
.lightbox-content { position: relative; max-width: 80vw; max-height: 80vh; }
.lightbox-content img, .lightbox-content video { width: auto; height: auto; max-width: 100%; max-height: 80vh; border-radius: 4px; box-shadow: 0 0 50px rgba(0,0,0,0.8); }

/* Content Protection Layer - Scope: Gallery Assets Only */
.protected-gallery-media { 
    -webkit-touch-callout: none !important; 
    -webkit-user-select: none !important; 
    user-select: none !important; 
    -webkit-user-drag: none !important; 
    pointer-events: auto !important; 
}
.protection-overlay { 
    position: absolute; 
    inset: 0; 
    z-index: 100; 
    background: transparent; 
    cursor: default;
}

/* --- Footer --- */
.site-footer { padding: 50px 0; border-top: 1px solid var(--border-color); text-align: center; }
.footer-logo { height: 35px; width: auto; margin-bottom: 20px; opacity: 0.6; }
.site-footer p { font-size: 0.8rem; color: var(--text-muted); }

/* --- Scroll to Top Button --- */
.scroll-to-top {
    position: fixed; bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    background: var(--primary); color: #fff;
    border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 1000;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.scroll-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-to-top:hover { background: var(--primary-hover); transform: translateY(-3px); }

@media (max-width: 1024px) {
    .about-grid, .contact-container, .work-grid, .services-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
/* --- Contact Form 7 Styling --- */
.wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 1.5rem;
}

/* Labels (if used in CF7 form template) */
.wpcf7 label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #9CA3AF;
    margin-bottom: 10px;
}

/* Input Fields & Textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea {
    width: 100%;
    background: #15192A;
    border: 1px solid #1E2335;
    padding: 14px 18px;
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: 0.3s ease;
    outline: none;
    box-shadow: none;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus {
    border-color: var(--primary);
    background: #1A1F35;
}

.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
    color: #4B5563;
}

/* Submit Button */
.wpcf7 input[type="submit"] {
    width: 100%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    padding: 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s ease;
    margin-top: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.wpcf7 input[type="submit"]:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(124, 92, 255, 0.4);
}

/* Response Output (Success/Error Messages) */
.wpcf7-response-output {
    border-radius: 8px;
    padding: 10px 15px !important;
    margin: 20px 0 0 !important;
    font-size: 0.9rem;
    border-width: 1px !important;
}

.wpcf7-not-valid-tip {
    color: var(--secondary);
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Loader */
.wpcf7-spinner {
    position: absolute;
    margin-top: 10px;
}

@media (max-width: 1024px) {
    .about-grid, .contact-container, .work-grid, .services-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .featured-web-grid { grid-template-columns: 1fr; }
    .featured-web-card { min-height: 230px; }
    .hero-content .hero-proof { line-height: 1.8; }
    .hero-proof span { padding: 0 0.2rem; }
}
