/* assets/css/style.css - Premium Design System (Plus Jakarta Sans) */

:root {
    /* 🎨 Color Palette - Modern Agency */
    --bg-color: #F9FAFB;
    /* Soft Gray-White Background */
    --bg-card: #FFFFFF;
    /* Pure White Cards */

    --text-primary: #111827;
    /* Rich Black */
    --text-secondary: #6B7280;
    /* Muted Gray */
    --text-light: #9CA3AF;
    /* Light Gray */

    /* Accents */
    --primary: #3B82F6;
    /* Trustworthy Blue */
    --primary-dark: #2563EB;
    --accent: #F59E0B;
    /* Gold/Orange Premium Touch */

    /* Gradients */
    --gradient-hero: radial-gradient(circle at 50% 0%, #EFF6FF 0%, #F9FAFB 100%);
    --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #6366F1 100%);
    --gradient-gold: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);

    /* 📐 Borders & Shadows */
    --border-color: #E5E7EB;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* 🔤 Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 6rem 5%;
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    /* Prevent spillover */
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    /* Tight premium tracking */
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback needs care, but modern browsers usually fine */
    color: #111827;
    /* Fallback */
}

/* Headline Highlight */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 1.5rem;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.lead-text {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
    line-height: 1.8;
}

/* --- Components --- */

/* Buttons */
.btn-premium {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--text-primary);
    /* Black/Dark Button */
    color: #FFFFFF;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary);
    /* Blue on hover */
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: #F3F4F6;
}

/* Cards */
.card-premium {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-premium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.reveal.delay-100 {
    transition-delay: 0.1s;
}

.reveal.delay-200 {
    transition-delay: 0.2s;
}

.reveal.delay-300 {
    transition-delay: 0.3s;
}

/* Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

.menu-toggle {
    display: none;
    /* Default for mobile only */
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    margin-left: 0.5rem;
    color: var(--text-primary);
}

.highlight {
    color: var(--accent);
    /* Gold */
    font-weight: 800;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.85);
    /* Light glass */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: padding 0.3s ease;
}

nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(255, 255, 255, 0.98);
    /* Less transparent for clarity */
    box-shadow: var(--shadow-md);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    /* Wider container for header to prevent squeeze */
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    /* Dark Navy */
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-text .highlight {
    color: #f59e0b;
    /* Vibrant Orange */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.header-right {
    display: flex;
    gap: 1rem;
}

/* --- Hero Section --- */
.hero {
    padding-top: 140px;
    /* Space for nav */
    padding-bottom: 6rem;
    background: var(--gradient-hero);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
}

.hero-visual img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    /* 3D Transform hint */
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.hero-visual:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Services / Features */
.features-grid {
    display: grid;
    /* minmax(240px, 1fr) allows 4 items to fit in ~1000px container width */
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    /* Slightly tighter gap to fit 4 cards nicely */
    margin-top: 4rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: #EFF6FF;
    /* Light Blue */
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.card-premium h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

/* Our Approach / Process Steps */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.process-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: visible;
    /* Changed to allow number to stick out */
    transition: var(--transition);
    border: 1px solid var(--border-color);
    margin-top: 2rem;
    /* Add margin to avoid overlap with section title */
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.process-number {
    font-size: 5rem;
    font-weight: 800;
    color: #8b5cf6;
    opacity: 0.25;
    /* Slightly more visible */
    position: absolute;
    top: -35px;
    /* Stick out of the card */
    left: 20px;
    z-index: 0;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}


.process-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 1rem;
}

.process-content h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-img-container {
    height: 240px;
    overflow: hidden;
    background: #F3F4F6;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #EFF6FF;
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Testimonials */
.testimonial-card {
    text-align: center;
}

.quote-icon {
    font-size: 3rem;
    color: #DBEAFE;
    margin-bottom: 1.5rem;
}

/* Footer (Preserved functionality, updated style) */
footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h5 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-brand p {
    font-size: 1rem;
    max-width: 300px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* 
   ========================================
   MODERN FLOATING ACTIONS (Right Side)
   PRESERVED FROM PREVIOUS TASK
   ========================================
*/
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: visible;
    /* Allow pulse to go outside */
}

/* Gradients */
.call-action {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.wa-action {
    background: linear-gradient(135deg, #25d366, #128c7e);
}

/* Continuous Pulse Animation */
.action-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Hover Effects */
.action-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.action-btn:hover i {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-15deg);
    }

    75% {
        transform: rotate(15deg);
    }
}

/* Mobile Menu Overlay Styles */
@media (max-width: 900px) {
    .header-right .btn-premium {
        display: none;
        /* Hide main Contact button on mobile */
    }

    .menu-toggle {
        display: block;
        /* Show Hamburger */
        position: relative;
        z-index: 1002;
    }

    /* Advanced Mobile Drawer */
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100%;
        /* Full screen overlay */
        max-width: 100%;
        background: rgba(255, 255, 255, 0.98);
        /* Solid/Glass */
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1001;
        /* Behind toggle but above content */
        box-shadow: none;
    }

    .nav-links.active {
        transform: translateX(0);
        /* Slide in */
    }

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-primary);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    /* Staggered animation for links */
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active a:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active a:nth-child(5) {
        transition-delay: 0.5s;
    }

    /* Contact Button inside Mobile Menu (We can inject it or style the last link) */
    .nav-links .mobile-only {
        display: inline-flex !important;
        /* Force show */
        margin-top: 1rem;
        padding: 1rem 2.5rem;
        background: var(--primary);
        color: white !important;
        border-radius: 999px;
        box-shadow: var(--shadow-lg);
    }
}

@media (max-width: 768px) {
    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
        /* Show image above text on mobile for better engagement */
        margin-bottom: -2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .floating-actions {
        bottom: 25px;
        right: 20px;
        gap: 12px;
    }

    .action-btn {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
        gap: 2rem;
    }

    /* Brand Section: Full Width at Top */
    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 1rem;
    }

    /* Contact Section: Full Width at Bottom */
    .footer-col:last-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-top: 1rem;
        border-top: 1px solid var(--border-color);
        padding-top: 2rem;
    }

    /* Adjust links for better touch targets */
    .footer-links li {
        margin-bottom: 1rem;
    }

    .footer-col-brand {
        grid-column: span 1;
    }
}

/* 
   ========================================
   ADMIN PANEL COMPATIBILITY & LEGACY SUPPORT
   ========================================
*/
.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #f8fafc;
    outline: none;
    transition: var(--transition);
    font-size: 1rem;
    color: var(--text-primary);
}

.form-input:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.submit-btn,
.cta-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.submit-btn:hover,
.cta-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Ensure admin table images look okay */
.project-table img.thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

/* 
   ========================================
   LIGHTBOX GALLERY
   ========================================
*/
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: white;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s;
    user-select: none;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Thumbnail styling improvements */
.mini-gallery img {
    cursor: pointer;
    transition: transform 0.2s;
}

.mini-gallery img:hover {
    transform: scale(1.1);
    z-index: 10;
    border-color: var(--accent) !important;
}

.main-img {
    cursor: pointer;
}
/* --- Typing Animation --- */
#dynamic-text::after {
    content: '|';
    display: inline-block;
    margin-left: 2px;
    animation: blink-cursor 0.75s step-end infinite;
    color: var(--primary);
    vertical-align: bottom;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
