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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

:root {
    /* Will be updated via JS to match fixed navbar height */
    --nav-height: 100px;
}

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

/* Typography - Improved Harmony */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Consistent Spacing System */
.section-padding {
    padding: 120px 0;
}

.section-padding-medium {
    padding: 80px 0;
}

.section-padding-small {
    padding: 60px 0;
}

/* Buttons - Improved Proportions */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #1e4a8a);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e4a8a, #153a6b);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-accent {
    background: #d32f2f;
    color: white;
    border: 2px solid #d32f2f;
}

.btn-accent:hover {
    background: #b71c1c;
    border-color: #b71c1c;
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: white;
    color: #333;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    min-height: 56px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Navigation - Improved Proportions */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo {
    width: 140px;
    height: 90px;
    object-fit: contain;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: #2c5aa0;
}

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

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

.nav-cta {
    background: #d32f2f;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
}

.nav-cta:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

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

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

/* Hero Section - Improved Proportions */
.hero {
    /* Subtract fixed navbar height so content isn't cropped on short viewports */
    min-height: calc(100dvh - var(--nav-height, 100px));
    padding-top: var(--nav-height, 100px);
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4a8a 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/WhatsApp Image 2025-07-25 at 20.11.20 (2).jpeg') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.8), rgba(30, 74, 138, 0.7));
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    max-width: 900px;
    margin: 0 auto 48px;
    line-height: 1.7;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
}

.hero-actions .btn:last-child {
    background: #d32f2f;
    border-color: #d32f2f;
}

.hero-actions .btn:last-child:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 2px;
    height: 40px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Section Headers - Improved Harmony */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: #333;
    margin-bottom: 16px;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 24px;
    font-weight: 400;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2c5aa0, #1e4a8a);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #d32f2f;
    border-radius: 1px;
}

/* About Section - Improved Proportions */
.about {
    padding: 120px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-subtitle {
    font-size: 2.2rem;
    color: #2c5aa0;
    margin-bottom: 24px;
    line-height: 1.2;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 48px;
    color: #555;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature i {
    font-size: 2.2rem;
    color: #2c5aa0;
    width: 60px;
    text-align: center;
}

.feature h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Services Section - Improved Grid Harmony */
.services {
    padding: 120px 0;
    background: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #2c5aa0, #1e4a8a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.service-icon i {
    font-size: 2.2rem;
    color: white;
}

.service-title {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.2;
}

.service-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 1rem;
    flex-grow: 1;
}

.service-image {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.service-card:hover .service-image img {
    transform: scale(1.1);
}

/* Portfolio Section - Improved Grid Harmony */
.portfolio {
    padding: 120px 0;
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

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

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.85), rgba(30, 74, 138, 0.85));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-overlay h4 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    line-height: 1.2;
}

.portfolio-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.4;
}

/* Contact Section - Improved Proportions */
.contact {
    padding: 120px 0;
    background: white;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-item i {
    font-size: 1.8rem;
    color: #2c5aa0;
    width: 50px;
    text-align: center;
}

.contact-item.phone i {
    color: #d32f2f;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.cta-button {
    margin-top: 24px;
}

.cta-button .btn {
    background: #d32f2f;
    border-color: #d32f2f;
}

.cta-button .btn:hover {
    background: #b71c1c;
    border-color: #b71c1c;
}

.contact-form-container {
    background: #f8f9fa;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    min-height: 52px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

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

/* Social Media Section - Improved Proportions */
.social-media {
    padding: 100px 0;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4a8a 100%);
    color: white;
    text-align: center;
}

.social-content h3 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.social-content p {
    font-size: 1.2rem;
    margin-bottom: 48px;
    opacity: 0.9;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: transform 0.3s ease;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
}

.social-link i {
    font-size: 1.6rem;
}

/* Footer - Improved Proportions */
.footer {
    background: #2c3e50;
    color: white;
    padding: 80px 0 30px;
}

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

.footer-section h4 {
    color: #2c5aa0;
    margin-bottom: 24px;
    font-size: 1.3rem;
    line-height: 1.2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-section ul li a:hover {
    color: #2c5aa0;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #bdc3c7;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-contact i {
    color: #2c5aa0;
    width: 24px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Design - Improved Harmony */
@media (max-width: 768px) {
    .nav-logo .logo {
        width: 100px;
        height: 70px;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .navbar.scrolled {
        padding: 8px 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        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: 24px 0;
    }

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

    .nav-menu li {
        margin: 12px 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-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 400px;
    }

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

    .service-card {
        min-height: auto;
        padding: 30px;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-container {
        padding: 30px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-padding-medium {
        padding: 60px 0;
    }

    .section-padding-small {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .nav-logo .logo {
        width: 80px;
        height: 60px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar.scrolled {
        padding: 6px 0;
    }
    
    .container {
        padding: 0 15px;
    }

    .hero {
        /* Keep top padding equal to navbar height on very small widths */
        padding: var(--nav-height, 100px) 15px 0;
    }

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

    .service-card,
    .contact-form-container {
        padding: 24px;
    }

    .hero-actions .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .about-image img {
        height: 300px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-padding-medium {
        padding: 50px 0;
    }

    .section-padding-small {
        padding: 40px 0;
    }
}

/* Handle very short screens (e.g., iPhone SE) */
@media (max-height: 700px) {
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.6rem);
        margin-bottom: 12px;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 20px;
        line-height: 1.5;
    }
    .hero-actions {
        margin-top: 20px;
        gap: 12px;
    }
    .scroll-indicator {
        display: none;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}