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

:root {
    --primary-color: #1e40af;
    --primary-dark: #1e3a8a;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
    width: 100%;
}

/* Navigation Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    background-color: var(--bg-white);
    padding: clamp(0.25rem, 0.5vw, 0.5rem);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar .logo:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.navbar .logo img {
    height: clamp(45px, 7vw, 90px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.navbar .logo:hover img {
    transform: scale(1.05);
}

.navbar .menu {
    list-style: none;
    display: flex;
    gap: clamp(0.5rem, 2vw, 2rem);
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.navbar .menu li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.navbar .menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar .menu li a:hover,
.navbar .menu li a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
}

.navbar .menu li a:hover::after,
.navbar .menu li a.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: clamp(3rem, 8vw, 5rem) clamp(1.5rem, 4vw, 2rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Content Section */
.content {
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    line-height: 1.3;
}

.content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content > p {
    margin-bottom: 2rem;
}

/* Content with Image Layout */
.content-with-image {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    margin: clamp(2rem, 5vw, 4rem) 0;
    padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.content-with-image.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.content-with-image.reverse .content-text {
    order: 2;
}

.content-with-image.reverse .content-image-wrapper {
    order: 1;
}

.content-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
}

.content-text p {
    text-align: justify;
    text-justify: inter-word;
    margin: 0;
    max-width: none;
    line-height: 1.85;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    hyphens: auto;
}

.content-text .btn {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.content-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
}

.content-image {
    width: 100%;
    height: clamp(300px, 40vw, 450px);
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.content-image-wrapper:hover .content-image {
    transform: scale(1.05);
}

/* Services Container */
.services-container {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
}

.services-container h2 {
    text-align: left;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

.services-container h2::after {
    left: 0;
    transform: none;
    width: 60px;
}

.services-container p {
    text-align: justify;
    text-justify: inter-word;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    line-height: 1.85;
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: none;
    hyphens: auto;
}

/* Service Items with Images */
.service-item-with-image {
    display: grid;
    grid-template-columns: clamp(250px, 30vw, 300px) 1fr;
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 3rem;
    align-items: start;
    background: var(--bg-white);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item-with-image:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-item-with-image .service-image {
    width: 100%;
    height: clamp(200px, 25vw, 250px);
    overflow: hidden;
    border-radius: 12px;
}

.service-item-with-image .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-item-with-image:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
}

.service-item-with-image .service-content h2 {
    text-align: left;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.service-item-with-image .service-content h2::after {
    left: 0;
    transform: none;
    width: 60px;
}

.service-item-with-image .service-content p {
    text-align: justify;
    text-justify: inter-word;
    max-width: none;
    line-height: 1.85;
    hyphens: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(2rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    border-radius: 12px;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn:hover::before {
    left: 100%;
}

.btn:active {
    transform: translateY(0);
}

/* Contact Container */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-details {
    background: var(--bg-white);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

.contact-details p {
    text-align: left;
    margin-bottom: 1rem;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    color: var(--text-dark);
    line-height: 1.75;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    margin-top: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 0;
}

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

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: clamp(0.9rem, 1.5vw, 1rem);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: clamp(0.875rem, 2vw, 1rem) clamp(1rem, 2vw, 1.25rem);
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23334155' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.contact-form .checkbox-group {
    margin: 2rem 0 1.5rem;
}

.contact-form .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    gap: 0.75rem;
}

.contact-form .checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.contact-form .checkbox-label span {
    color: var(--text-dark);
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
}

.contact-form button.btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: clamp(1rem, 2vw, 1.125rem) 2rem;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.contact-form button.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 3vw, 2rem);
    text-align: center;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.875rem, 1.5vw, 0.95rem);
    line-height: 1.6;
}

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

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Image Sections (centered) */
.image-section {
    margin: 2.5rem 0;
    text-align: center;
}

.image-section .content-image {
    width: 100%;
    max-width: 900px;
    height: clamp(300px, 40vw, 500px);
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

/* Content Boxed Table - Perfect alignment */
.content-boxed-table {
    display: table;
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.content-image-cell {
    display: table-row;
    width: 100%;
}

.content-image-cell::before {
    content: '';
    display: table-cell;
    width: 100%;
    padding: 0;
    margin: 0;
}

.content-image-fixed {
    width: 100%;
    height: clamp(300px, 40vw, 450px);
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
}

.content-text-cell {
    display: table-row;
    width: 100%;
}

.content-text-cell > * {
    display: table-cell;
    width: 100%;
    padding: clamp(2rem, 4vw, 3rem);
    vertical-align: top;
}

.content-text-cell p {
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 1.5rem;
    line-height: 1.85;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    hyphens: auto;
    color: var(--text-dark);
    width: 100%;
    display: block;
}

.content-text-cell p:last-of-type {
    margin-bottom: 2rem;
}

.content-text-cell .btn-center {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    width: 100%;
}

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

/* Alternative approach using flexbox for better control */
.content-boxed-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 900px;
    margin: 3rem auto;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.content-image-cell {
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    display: block;
}

.content-image-cell::before {
    display: none;
}

.content-image-fixed {
    width: 100%;
    height: clamp(300px, 40vw, 450px);
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
}

.content-text-cell {
    width: 100%;
    padding: clamp(2rem, 4vw, 3rem);
    box-sizing: border-box;
    display: block;
}

.content-text-cell > * {
    display: block;
    width: 100%;
}

.content-text-cell p {
    text-align: justify;
    text-justify: inter-word;
    margin-bottom: 1.5rem;
    line-height: 1.85;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    hyphens: auto;
    color: var(--text-dark);
    width: 100%;
    box-sizing: border-box;
}

.content-text-cell p:last-of-type {
    margin-bottom: 2rem;
}

.content-text-cell .btn-center {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

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

/* Responsive Design - Mobile First Approach */
@media (min-width: 1200px) {
    .navbar .logo img {
        height: clamp(65px, 5.5vw, 100px);
    }
    
    .navbar .logo {
        padding: clamp(0.4rem, 0.8vw, 0.6rem);
    }
}

@media (min-width: 1600px) {
    .navbar .logo img {
        height: clamp(80px, 5vw, 120px);
    }
    
    .navbar .logo {
        padding: clamp(0.5rem, 1vw, 0.75rem);
    }
}

@media (max-width: 968px) {
    .content-with-image {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .content-with-image.reverse {
        grid-template-columns: 1fr;
    }
    
    .content-with-image.reverse .content-text,
    .content-with-image.reverse .content-image-wrapper {
        order: 0;
    }
    
    .content-image {
        height: clamp(300px, 50vw, 400px);
    }
    
    .content-text {
        gap: 1.25rem;
    }
    
    .service-item-with-image {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-item-with-image .service-image {
        height: clamp(200px, 40vw, 250px);
    }
    
    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .hero p {
        font-size: clamp(0.95rem, 3vw, 1.1rem);
    }

    .content {
        padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 1.5rem);
    }

    .content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .navbar .menu {
        gap: 0.75rem;
        justify-content: center;
        width: 100%;
    }

    .navbar .menu li a {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        padding: 0.4rem 0.8rem;
    }

    .services-container h2 {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }

    .contact-form {
        padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: clamp(2rem, 6vw, 3rem) clamp(1rem, 3vw, 1.5rem);
    }

    .hero h1 {
        font-size: clamp(1.5rem, 7vw, 1.75rem);
    }

    .content h2 {
        font-size: clamp(1.5rem, 6vw, 1.75rem);
    }

    .btn {
        padding: clamp(0.75rem, 3vw, 0.875rem) clamp(1.5rem, 5vw, 2rem);
        font-size: clamp(0.85rem, 2.5vw, 0.95rem);
        width: 100%;
        text-align: center;
    }

    .navbar .menu {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        margin-top: 1rem;
    }

    .navbar .container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .navbar .logo {
        justify-content: center;
        padding: 0.3rem;
    }
    
    .navbar .logo img {
        height: clamp(40px, 8vw, 50px);
    }
    
    .content-text .btn {
        width: 100%;
    }
}

/* Additional Modern Enhancements */
.content section {
    margin-bottom: 3rem;
}

.content ul {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.content ul li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    text-align: justify;
    text-justify: inter-word;
}

.content ul li:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.content ul li strong {
    color: var(--primary-color);
    font-size: clamp(1rem, 2vw, 1.1rem);
    display: block;
    margin-bottom: 0.5rem;
    text-align: left;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
    
    .content {
        padding: 1rem;
    }
}
