/* 
    CraftWeb.in - Main Stylesheet
    Brand Colors:
    - Primary Teal: #12B2A3
    - Secondary Navy: #173451
    - Background: #FFFFFF
    - Accent Light: #E0F4F2
    - Text Dark: #173451
    - Text Light: #555555
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Nunito:wght@400;500;600&display=swap');

:root {
    --primary-teal: #12B2A3;
    --primary-teal-dark: #0e9184;
    --secondary-navy: #173451;
    --navy-dark: #0f2235;
    --bg-white: #FFFFFF;
    --accent-light: #E0F4F2;
    --text-dark: #173451;
    --text-light: #555555;
    --white: #ffffff;
    --gray-light: #f5f5f5;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Nunito', sans-serif;

    --transition-fast: 0.3s ease;
    --shadow-subtle: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --container-width: 1200px;
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--secondary-navy);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

.text-center {
    text-align: center;
}

.text-teal {
    color: var(--primary-teal);
}

.text-navy {
    color: var(--secondary-navy);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.space-between {
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-teal-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background-color: var(--secondary-navy);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--navy-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-teal);
    color: var(--primary-teal);
}

.btn-outline:hover {
    background-color: var(--primary-teal);
    color: var(--white);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-fast);
    padding: 20px 0;
    box-shadow: var(--shadow-subtle);
}

header.scrolled {
    padding: 10px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-navy);
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary-teal);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-close-btn {
    display: none;
}


@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--secondary-navy);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 100px 40px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1100;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-close-btn {
        display: block;
        position: absolute;
        top: 30px;
        right: 30px;
        font-size: 2rem;
        color: white !important;
        cursor: pointer;
        z-index: 1105;
        line-height: 1;
        padding: 8px;
        border-radius: 50%;
        transition: all 0.3s ease;
    }

    .mobile-close-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

    .mobile-close-btn i {
        color: white !important;
        display: block;
    }


    .nav-links li {
        margin-bottom: 25px;
    }

    .nav-links li a {
        color: var(--white);
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1200;
    }

    .logo-text {
        font-size: 2.2rem;
    }
}

/* Tablet Optimization (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-links li a {
        font-size: 1rem;
        padding: 8px 12px;
    }

    .logo-text {
        font-size: 2rem;
    }
}

/* Footer */
footer {
    background-color: var(--secondary-navy);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 60px;
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 3.4rem;
    font-weight: 500;
    line-height: 1;
}

.footer-about p {
    color: #ccc;
    margin-bottom: 20px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 25px;
    position: relative;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background-color: var(--primary-teal);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: var(--primary-teal);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Additional Responsive Fixes */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .hero-section {
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
        display: flex;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .service-item {
        text-align: center;
    }

    .service-item .service-image {
        order: -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
    }

    h1 {
        font-size: 2rem !important;
    }
}