/* style.css - Main Stylesheet for Intelligent Life Website */

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

:root {
    --primary: #1A365D;      /* Deep navy blue */
    --secondary: #19B5A3;    /* Teal */
    --accent: #FF5757;       /* Bright coral */
    --light: #F8FAFC;        /* Off-white */
    --dark: #1E293B;         /* Dark slate */
    --gray: #64748B;         /* Medium gray */
    --light-gray: #E2E8F0;   /* Light gray */
    --gradient: linear-gradient(135deg, var(--primary) 0%, #2C5282 100%);
    --error: #e53e3e;        /* Error red */
}

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

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 1rem;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.section-header h2:after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary);
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--gray);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Navigation */
nav {
    background: var(--gradient);
    color: #fff;
    padding: 10px 0;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo-container {
    display: flex;
    align-items: center;
    max-height: 150px;
    overflow: hidden;
    margin: 5px 0;
}

.logo {
    height: 200px; /* Much larger logo, around 2.5x the previous size */
    width: auto;
    transition: all 0.3s ease;
    margin-left: -10px; /* Adjust logo position to fit better */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s;
}

nav a:hover:after {
    width: 100%;
}

.btn-contact {
    background-color: var(--accent);
    padding: 8px 20px;
    border-radius: 30px;
    color: white;
}

.btn-contact:hover {
    background-color: #ff4141;
    color: white;
}

.btn-contact:after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    border-radius: 2px;
}

/* Header */
header {
    background: var(--gradient);
    position: relative;
    padding: 30px 0 30px; /* Equal padding top and bottom */
    color: white;
    text-align: center;
    margin-top: 170px; /* Increased to accommodate larger logo */
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 50px; /* Reduced height */
}

header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 2.5rem; /* Increased from 2rem to make it larger than hero content */
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
}

/* Hero Section */
#hero {
    padding: 80px 0;
    background-color: white;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h2 {
    font-size: 2rem; /* Made smaller than header p */
    margin-bottom: 30px;
}

.hero-content h2:after {
    left: 50%;
    transform: translateX(-50%);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-light {
    background-color: white;
}

.section-dark {
    background-color: var(--light-gray);
}

.section-accent {
    background-color: var(--primary);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    margin-bottom: 20px;
}

/* Divisions Section */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 30px;
}

.division-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    padding: 30px;
    border-top: 4px solid var(--secondary);
}

.division-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.division-card h3 {
    margin-bottom: 15px;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.btn-arrow:after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-arrow:hover {
    color: var(--primary);
}

.btn-arrow:hover:after {
    transform: translateX(5px);
}

/* Division Styling (Original) */
.division {
    margin-bottom: 30px;
    padding: 25px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary);
}

.division:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.division h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.division strong {
    color: var(--primary);
    font-weight: 600;
}

.division a {
    display: inline-block;
    margin-top: 15px;
    color: var(--secondary);
    font-weight: 600;
}

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

/* Contact Form Styles */
.contact-section {
    padding: 80px 0;
    background-color: white;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(25, 181, 163, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-error {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error textarea {
    border-color: var(--error);
}

.form-group.error .form-error {
    display: block;
}

.form-submit {
    grid-column: span 2;
    text-align: center;
}

.btn-submit {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 12px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-submit:hover {
    background: #15a090;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.form-success {
    text-align: center;
    padding: 30px;
    background-color: rgba(25, 181, 163, 0.1);
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

.form-success.active {
    display: block;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--secondary);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background: #15a090;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: white;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--secondary);
    padding: 10px 25px;
    border: 2px solid var(--secondary);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

/* CTA Section */
.cta-box {
    background: var(--gradient);
    color: white;
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.cta-box h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h4 {
    color: white;
    margin-bottom: 20px;
    position: relative;
}

.footer-column h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--secondary);
}

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

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: var(--secondary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .logo {
        height: 150px;
    }
    
    header {
        margin-top: 140px;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 120px;
    }
    
    header {
        margin-top: 120px;
        padding: 20px 0;
    }
    
    nav ul {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    header p {
        font-size: 1.8rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .division-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-box {
        padding: 40px 20px;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .form-submit {
        grid-column: span 1;
    }
}

/* Utilities */
.text-center {
    text-align: center;
}

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

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

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Mobile menu when active */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.nav-links.active li {
    margin: 10px 0;
    text-align: center;
}
