/* =========================================
   STYLE.CSS - UNAMOBLE WEB SOLUTIONS
   ========================================= */

/* 1. ROOT & VARIABLES
----------------------------------------- */
:root {
    /* Fonts */
    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    
    /* Colors - Light Mode (Default) */
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --primary-color: #0062E6; /* A strong, modern blue */
    --accent-color: #6f42c1; /* A subtle purple */
    --text-light: #6c757d;

    /* Colors - Dark Mode */
    --bg-dark: #121212;
    --text-dark: #f8f9fa;
    --card-bg-dark: #1e1e1e;
    --border-dark: #343a40;
    --primary-dark: #007bff; /* Brighter blue for dark mode */
    --accent-dark: #8a63d2;
    --text-light-dark: #adb5bd;

    /* Shared */
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

body.dark-mode {
    --bg-color: var(--bg-dark);
    --text-color: var(--text-dark);
    --card-bg: var(--card-bg-dark);
    --border-color: var(--border-dark);
    --primary-color: var(--primary-dark);
    --accent-color: var(--accent-dark);
    --text-light: var(--text-light-dark);
}

/* 2. GLOBAL STYLES
----------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Add padding for fixed bottom nav */
    padding-bottom: 100px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    opacity: 0.8;
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

.alt-bg {
    background-color: var(--card-bg); /* Use card-bg for a subtle section break */
    border-radius: var(--border-radius);
    margin: 2rem auto;
}

.page-title {
    font-size: 2.5rem;
    text-align: center;
    font-weight: 800;
}

.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: -1rem auto 2rem auto;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hidden {
    display: none;
}

/* 3. HEADER & THEME TOGGLE
----------------------------------------- */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -1px;
}

/* Theme Switcher */
.theme-switcher {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
}

.theme-switcher-label { 
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.theme-switcher label {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
    background-color: var(--border-color);
    border-radius: 34px;
    cursor: pointer;
    transition: var(--transition);
}

.theme-switcher .slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.theme-switcher input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switcher input:checked + .slider {
    transform: translateX(22px);
}

.theme-switcher .sun, .theme-switcher .moon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    transition: opacity 0.2s ease;
}

.theme-switcher .sun { left: 7px; opacity: 1; }
.theme-switcher .moon { right: 7px; opacity: 0; }

body.dark-mode .theme-switcher .sun { opacity: 0; }
body.dark-mode .theme-switcher .moon { opacity: 1; }
body.dark-mode .theme-switcher label { background-color: var(--primary-color); }


/* 4. DOCK NAVIGATION (BOTTOM)
----------------------------------------- */
.dock-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    background-color: var(--card-bg);
    padding: 0.8rem 1rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 500;
    width: 60px; /* Fixed width for consistency */
}

.nav-link .icon {
    font-size: 1.25rem;
    margin-bottom: 2px;
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-link:hover:not(.active) {
    background-color: var(--border-color);
    color: var(--text-color);
}

/* Hide labels on extra small screens */
@media (max-width: 360px) {
    .nav-link .label {
        display: none;
    }
    .nav-link .icon {
        font-size: 1.5rem;
    }
    .nav-link {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        padding: 0.25rem;
    }
    .dock-nav {
        gap: 0.75rem;
    }
}

/* 5. BUTTONS & CARDS
----------------------------------------- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-light {
    background: #fff;
    color: var(--primary-color);
    font-weight: 700;
}

.card {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-gradient {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: var(--gradient);
    color: white;
    text-align: center;
}

/* 6. PAGE-SPECIFIC STYLES
----------------------------------------- */

/* --- HOME PAGE --- */
.hero {
    text-align: center;
    padding-top: 2rem;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
}

.hero h2.text-gradient {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-package {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 2rem auto;
    max-width: 350px;
    box-shadow: var(--shadow-md);
}

.hero-package h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-package .price { 
    font-weight: 700;
    line-height: 1.2;
}

.hero-package .price-old { 
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: line-through;
    display: block;
    font-weight: 400;
}

.hero-package .price-new { 
    color: var(--primary-color);
    font-weight: 800;
    font-size: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.features-grid .grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.features-grid .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.features-grid .card h3 {
    font-size: 1.2rem;
}

.everything-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.everything-list p {
    font-weight: 500;
    background: var(--card-bg);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.referral-offer {
    text-align: center;
}

/* --- SERVICES PAGE --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    background: var(--card-bg);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.cta-section {
    text-align: center;
    padding-top: 2rem;
}

/* --- ABOUT PAGE --- */
.about-content {
    max-width: 900px;
}

.about-text h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-top: 2rem;
}

.founder-section {
    text-align: center;
    margin-top: 4rem;
}

.founder-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.founder-img {
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    overflow: hidden;
    width: 150px;
    height: 150px;
    transition: var(--transition);
    filter: grayscale(100%);
}

.founder-card:hover .founder-img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* --- CONTACT PAGE --- */
.contact-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-group input,
.form-group textarea { 
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-primary); 
    transition: var(--transition);
}

.form-group textarea { 
    resize: vertical;
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus { 
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.form-group-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form-container button[type="submit"] {
    width: 100%;
    font-size: 1rem;
}

#whatsapp-link-container {
    text-align: center;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-top: 1.5rem;
}

#whatsapp-link-container h3 {
    color: var(--primary-color);
}

.contact-details h3 {
    font-size: 1.3rem;
}

.contact-details p {
    margin-bottom: 1rem;
}

.social-icons {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem; 
}

.social-link { 
    color: var(--text-light);
    display: inline-block;
    transition: var(--transition);
}

.social-link svg { 
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.social-link:hover { 
    color: var(--primary-color);
    transform: scale(1.1) translateY(-3px);
}

/* --- ASSETS PAGE --- */
/* REMOVED .placeholder-img styles as they are no longer needed for portfolio */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex; /* Added to make content flex within */
    flex-direction: column; /* Added to stack image and caption */
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.portfolio-item img { /* NEW/MODIFIED STYLES FOR PORTFOLIO IMAGES */
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* This is key: crops image to fill the space */
    border-bottom: 1px solid var(--border-color); /* Separator */
    border-top-left-radius: var(--border-radius); /* Ensure top corners are rounded */
    border-top-right-radius: var(--border-radius);
}

.portfolio-caption {
    padding: 1.5rem;
    flex-grow: 1; /* Added to make caption take remaining height */
    display: flex; /* Added for vertical alignment if needed */
    flex-direction: column;
    justify-content: space-between; /* Pushes content apart */
}

.portfolio-caption h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem; /* Tighter spacing */
}

.portfolio-caption p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: auto; /* Pushes text to the bottom if content is short */
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    padding: 0;
    overflow: hidden;
}

/* NOTE: If you still have placeholder-img in blog cards,
   you might need to add a specific style for `blog-card .placeholder-img`
   if you want a different aspect ratio or handling there. */
.blog-card .placeholder-img {
    border-radius: 0;
    aspect-ratio: 16/9; /* Ensured consistent aspect ratio for blog placeholders */
    min-height: auto; /* Override previous min-height */
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h4 {
    font-size: 1.2rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
}

/* 7. ANIMATIONS
----------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


