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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    font-size: 0.98rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Jost', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav {
    padding: 1rem 0;
}

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

.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #00abe1;
}

.nav-logo-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
    letter-spacing: 0.02em;
    line-height: 1.25;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: #00abe1;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #161f6d;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00abe1;
    transition: width 0.3s ease;
}

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

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

.bar {
    width: 25px;
    height: 3px;
    background: #000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: url('../img/big-nickel.jpg') center center/cover no-repeat;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 1.5rem 0; /* Restore vertical padding */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(22, 31, 109, 0.65); /* dark overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 0 4px 24px rgba(0,0,0,0.28), 0 1.5px 6px rgba(0,0,0,0.18); /* diffuse drop shadow for text */
}

.hero-title {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 4px 24px rgba(0,0,0,0.28), 0 1.5px 6px rgba(0,0,0,0.18); /* reinforce shadow for headings */
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    text-shadow: 0 4px 24px rgba(0,0,0,0.28), 0 1.5px 6px rgba(0,0,0,0.18); /* reinforce shadow for headings */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons .btn {
    box-shadow: 0 6px 32px 0 rgba(0,0,0,0.22), 0 1.5px 6px rgba(0,0,0,0.13); /* diffuse drop shadow for buttons */
}

.hero-buttons .btn:hover {
    box-shadow: 0 10px 40px 0 rgba(0,171,225,0.32), 0 2px 8px rgba(0,0,0,0.18);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
}

.btn-primary {
    background: #00abe1;
    color: white;
}

.btn-primary:hover {
    background: #161f6d;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,171,225,0.3);
}

.btn-secondary {
    background: transparent;
    color: #00abe1;
    border: 2px solid #00abe1;
}

.btn-secondary:hover {
    background: #00abe1;
    color: #fff;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
    color: #666;
}

/* About Section Two-Column Layout (refined) */
.about-content {
    display: flex;
    gap: 2.5rem;
    align-items: center; /* Changed from flex-start to center for vertical centering */
    margin-top: 0;
}

.about-image {
    flex: 1;
    min-width: 200px;
    max-width: 440px; /* Increased from 400px */
    display: flex;
    align-items: center; /* Vertically center image */
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 420px; /* Increased from 340px */
    border-radius: 15px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.about-text {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 0.5rem;
}

.about-text .section-title {
    margin-bottom: 1.25rem;
    text-align: left;
    color: #2c3e50;
    margin-left: 0; /* Ensure no left margin */
}

.about-text .section-description {
    text-align: left;
    color: #444;
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 0;
    margin-top: 0;
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .about-image {
        max-width: 100%;
        width: 100%;
        align-items: flex-start; /* Reset for mobile */
    }
    .about-text {
        padding: 0;
    }
    .about-image img {
        max-width: 340px; /* Reduce for smaller screens */
    }
}

@media (max-width: 600px) {
    .about-content {
        flex-direction: column;
        gap: 1rem;
    }
    .about-image {
        display: none;
    }
    .about-text {
        width: 100%;
        padding: 0;
    }
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Service Icons */
.service-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #161f6d, #00abe1);
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(0, 171, 225, 0.3);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

/* Forms */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00abe1;
    box-shadow: 0 0 0 3px rgba(0, 171, 225, 0.1);
}

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

.contact-form-message {
    margin-top: 1rem;
    padding: 1.25rem 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    font-size: 1.05rem;
    box-shadow: 0 2px 12px rgba(0, 171, 225, 0.07);
    border: 1.5px solid #e1e8ed;
    transition: background 0.3s, color 0.3s;
}
.contact-form-message {
    background: #e6f9f0;
    color: #1a7f4c;
}
.contact-form-message[error],
.contact-form-message.error {
    background: #ffeaea;
    color: #b30000;
    border-color: #ffb3b3;
}

/* Footer */
.footer {
    background: #161f6d;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #00abe1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #00abe1;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #fff;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid #00abe1;
    padding-top: 1rem;
    text-align: center;
    color: #fff;
}

/* Certified Logos - Larger Sizing and Alignment */
.cert-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    margin-bottom: 1.2rem;
}
.cert-logo img {
    max-height: 120px; /* Increased from 90px */
    max-width: 240px;  /* Increased from 180px */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.07));
}

@media (max-width: 600px) {
    .cert-logo {
        height: 65px;
        margin-bottom: 1rem;
    }
    .cert-logo img {
        max-height: 55px;
        max-width: 120px;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

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

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Smooth scrolling for all browsers */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #00abe1;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .hero-buttons,
    .contact-form,
    .footer {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 1rem 0;
    }
}
