/* assets/css/style.css */
:root {
    --primary-color: #ffffff;
    --secondary-color: #2563eb;
    --accent-color: #0ea5e9;
    --text-color: #0f172a;
    --text-muted: #475569;
    --bg-dark: #f8fafc;
    --card-bg: #ffffff;
    --border-color: rgba(15, 23, 42, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Nav */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.btn-primary {
    background: #0f172a;
    color: white;
    padding: 0.65rem 1.4rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid #1e293b;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 15px rgba(15, 23, 42, 0.15);
}

/* Hero Section */
.hero {
    padding: 8rem 2rem 5rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    text-align: left;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.hero-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12);
    border: 1px solid var(--border-color);
}

.hero h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
}

.malayalam-tag {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50px;
    display: inline-block;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Card Images */
.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
        padding-top: 6rem;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image-container {
        margin-top: 1.5rem;
    }
    
    .hero-image {
        max-width: 450px;
    }
}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.08);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.15);
    border-radius: 8px;
    color: #0f172a;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

select.form-control option {
    background: #ffffff;
    color: #0f172a;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.info-item i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

/* Footer */
footer {
    background: var(--primary-color);
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #FFF;
}

/* Service Tags */
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tag {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(56, 189, 248, 0.2);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.tag:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: var(--accent-color);
}

/* Force flex column on cards to push tags to bottom */
.service-card {
    display: flex;
    flex-direction: column;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}

/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.4s ease;
    align-items: center;
    justify-content: center;
}

.popup-modal.show {
    display: flex;
    opacity: 1;
}

.popup-content {
    background-color: var(--primary-color);
    border: 1px solid var(--accent-color);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
    transform: scale(0.85);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.popup-modal.show .popup-content {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    right: 1.25rem;
    top: 1rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--accent-color);
}

/* About Container */
.about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    align-items: center;
}

/* Hamburger Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--secondary-color);
}

/* Mobile Nav Drawer (Slides from Right) */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08);
    z-index: 1200;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
}

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

.close-menu {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-menu:hover {
    color: var(--secondary-color);
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.mobile-links a {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.mobile-links a:hover {
    color: var(--secondary-color);
}

.btn-primary-mobile {
    background: #0f172a;
    color: white !important;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid #1e293b;
    text-align: center;
    align-self: flex-start;
    display: inline-block;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-mobile:hover {
    background: #1e293b;
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none !important;
    }
    
    .menu-toggle {
        display: block;
    }
}

/* Footer Styles */
footer {
    background: #ffffff;
    padding: 5rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.8fr 1.2fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col {
    text-align: left;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.footer-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
}

.service-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.loc-tag {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 500;
}

.map-container {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-col ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem 1.5rem;
    }
    .footer-col ul li {
        margin-bottom: 0;
    }
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    max-width: 500px;
    height: 380px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12);
    border: 1px solid var(--border-color);
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

@media (max-width: 992px) {
    .hero-slider {
        height: 320px;
        max-width: 450px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    .btn-primary {
        padding: 0.55rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

.career-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color) !important;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.08) !important;
}
