@import 'variables.css';
@import 'animations.css';

/* Header & Navigation */
header {
    background-color: var(--text-light);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo img {
    height: 60px;
    /* Adjust based on actual logo aspect ratio */
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.nav-links a {
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width var(--transition-speed);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

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

/* Hero Section */
.hero {
    background: #333;
    /* Fallback color */
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 119, 182, 0.7) 0%,
            rgba(12, 74, 110, 0.8) 50%,
            rgba(0, 168, 204, 0.6) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.hero-content h1::after {
    display: none;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btns .btn {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.hero-btns .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-btns .btn-outline:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary-color);
}

/* Services Preview */
.services-preview {
    background-color: var(--bg-light);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background-color: var(--text-light);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.08);
    transition: box-shadow var(--transition-speed), border-color var(--transition-speed);
    text-align: center;
    border: 1px solid transparent;
    will-change: transform;
}

.service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 168, 204, 0.15);
    border-color: var(--primary-light);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Preview */
.about-preview {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--bg-dark) 100%);
    color: var(--text-light);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-info h3,
.footer-links h3,
.footer-contact h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.footer-links ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

/* Responsive */
@media (max-width: 768px) {

    /* Fixed Navigation */
    header {
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .navbar {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    nav {
        position: static;
    }

    .mobile-menu-btn {
        display: block;
        padding: 10px;
        font-size: 1.8rem;
        z-index: 101;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: var(--spacing-md) 0;
        gap: 0;
        background-color: var(--text-light);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
    }

    .nav-links a:hover {
        background-color: var(--bg-light);
    }

    .nav-links a::after {
        display: none;
    }

    /* Hero Mobile */
    .hero {
        height: auto;
        min-height: 70vh;
        padding: var(--spacing-lg) 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 0.95rem;
        padding: 0 var(--spacing-sm);
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 var(--spacing-sm);
    }

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

    /* Grids */
    .service-grid {
        grid-template-columns: 1fr;
    }

    .about-preview {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
    }

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

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

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }

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

    /* CTA Cards Mobile */
    .cta-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 1.5rem;
    }

    /* Pricing Mobile */
    .pricing-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Section padding mobile */
    .section-padding {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }

    /* Hero small screens */
    .hero {
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .btn,
    .btn-outline {
        width: 100%;
        margin-left: 0 !important;
        padding: 14px 20px;
    }

    /* Logo smaller on mobile */
    .logo img {
        height: 45px;
    }

    /* Service cards - restore transform on mobile since JS tilt is disabled */
    .service-card {
        padding: var(--spacing-sm);
        transition: all var(--transition-speed);
    }

    .service-card:hover {
        transform: translateY(-5px);
    }

    .portfolio-item:hover {
        transform: translateY(-5px);
    }

    .cta-card:hover {
        transform: translateY(-5px);
    }

    .service-icon {
        font-size: 2.5rem;
    }

    /* Section CTA */
    .section-cta h2 {
        font-size: 1.4rem;
    }

    /* Portfolio item */
    .portfolio-img {
        height: 200px;
    }

    /* Contact CTA icons */
    .font-3rem {
        font-size: 2.5rem !important;
    }

    /* Floating Actions - small screens */
    .floating-actions {
        bottom: 15px;
        padding: 8px 15px;
        gap: 10px;
        width: 90%;
        justify-content: space-around;
        border-radius: 15px;
    }

    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    /* Cookie banner adjustment */
    body:has(.cookie-banner.show) .floating-actions {
        bottom: 100px;
    }
}

/* Floating Action Buttons */
.floating-actions {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 119, 182, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 168, 204, 0.1);
}

.floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.floating-btn:hover {
    transform: translateY(-5px) scale(1.1);
}

.fab-phone:hover {
    box-shadow: 0 8px 25px rgba(0, 168, 204, 0.5);
}

.fab-whatsapp:hover {
    box-shadow: 0 8px 25px rgba(74, 222, 128, 0.5);
}

.fab-mail:hover {
    box-shadow: 0 8px 25px rgba(0, 119, 182, 0.5);
}

.fab-phone {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.fab-whatsapp {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
}

.fab-mail {
    background: linear-gradient(135deg, var(--secondary-color), var(--bg-dark));
}

/* When cookie banner is showing, move floating actions up */
body:has(.cookie-banner.show) .floating-actions {
    bottom: 80px;
    transition: bottom 0.5s ease-in-out;
}

/* --- Global Responsive Fixes --- */
img,
video {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    /* Ensure container doesn't overflow on small screens */
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Portfolio Page Styles --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.08);
    transition: box-shadow 0.3s ease;
    position: relative;
    will-change: transform;
}

.portfolio-item:hover {
    box-shadow: 0 20px 40px rgba(0, 168, 204, 0.15);
}

.portfolio-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.portfolio-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* --- Contact Page Styles --- */
.contact-cta-wrapper {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.cta-card {
    text-decoration: none;
    color: inherit;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 5px 25px rgba(0, 119, 182, 0.1);
    background: #fff;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: block;
    border: 2px solid transparent;
    will-change: transform;
}

.cta-card:hover {
    box-shadow: 0 15px 40px rgba(0, 168, 204, 0.2);
    border-color: var(--primary-light);
}

.contact-details-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
}

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

/* --- Pricing Section Styles --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 119, 182, 0.1);
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color)) 1;
}

.price-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 6px;
}

.price-details {
    list-style: none;
    margin-top: 0.5rem;
    font-size: 0.95rem;
}

.price-details li {
    margin-bottom: 0.3rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.info-box {
    border: 1px solid var(--border-color);
}

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

.text-muted {
    color: #666;
}

.text-sm {
    font-size: 0.9rem;
}

.bg-white {
    background-color: #fff;
}

.shadow-sm {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.arrow-list {
    list-style: none;
}

.arrow-list li::before {
    content: "➔";
    color: var(--primary-color);
    margin-right: 8px;
}

/* Areas Served Grid */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.area-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 119, 182, 0.05);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.area-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
}

.area-card ul {
    list-style: none;
    padding: 0;
}

.area-card ul li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.area-card ul li i {
    font-size: 1.1rem;
}

/* --- Global Utilities (Cleanup) --- */
.text-white {
    color: #fff !important;
}

.border-white {
    border-color: #fff !important;
}

.ml-10 {
    margin-left: 10px;
}

.ml-20 {
    margin-left: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.w-100 {
    width: 100%;
}

.rounded-shadow {
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

.bg-secondary {
    background-color: var(--secondary-color);
}

.text-light {
    color: var(--text-light);
}

.cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--bg-dark));
    color: var(--text-light);
    text-align: center;
}

.cta-section h2 {
    color: var(--text-light);
}

.p-2 {
    padding: 2rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* --- Premium Section Backgrounds --- */
.services-preview {
    position: relative;
    overflow: hidden;
}

.services-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 168, 204, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.services-preview::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 222, 128, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Missing Utility Classes --- */
.bg-light {
    background-color: var(--bg-light);
}

.font-3rem {
    font-size: 3rem;
}

.font-1-2 {
    font-size: 1.2rem;
}

.mb-05,
.mb-0-5 {
    margin-bottom: 0.5rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-1-5 {
    margin-bottom: 1.5rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-4,
.margin-top-4 {
    margin-top: 4rem;
}

.max-w-800 {
    max-width: 800px;
}

.max-w-900 {
    max-width: 900px;
}

.opacity-50 {
    opacity: 0.5;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.inline-block {
    display: inline-block;
}

.text-whatsapp {
    color: var(--accent-color);
}

.btn-whatsapp {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    color: white;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, var(--accent-hover), #16a34a);
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.4);
}

.d-flex-col {
    display: flex;
    flex-direction: column;
}

.gap-10 {
    gap: 10px;
}

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

.rounded {
    border-radius: 8px;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 0.5rem;
}

.code-font {
    font-family: monospace;
}

/* --- Extra Small Screens (320px - iPhone SE, etc.) --- */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .logo img {
        height: 40px;
    }

    .btn {
        padding: 12px 16px;
        font-size: 0.9rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .floating-actions {
        padding: 6px 10px;
        gap: 8px;
    }

    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .contact-details-box {
        padding: 1rem;
    }

    .pricing-card {
        padding: 1rem;
    }

    .price-item {
        padding: 0.75rem;
    }
}