:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border: #e2e8f0;
    --success: #22c55e;
    --animation-duration: 0.6s;
    --border-radius: 8px;
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 5px 20px rgba(0,0,0,0.1);
    --shadow-heavy: 0 8px 32px rgba(0,0,0,0.1);
}

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

/* Reduce animations on low-end devices */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 50px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
}

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

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.nav-menu a:hover {
    color: #1e40af;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown > a i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 800px;
    max-width: 90vw;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border-top: 3px solid #1e40af;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 232, 240, 0.3);
}

/* Prevent dropdown overflow on right side */
.dropdown:last-child .dropdown-content,
.dropdown:nth-last-child(2) .dropdown-content {
    left: auto;
    right: 0;
}

/* Responsive dropdown positioning */
@media (max-width: 1200px) {
    .dropdown-content {
        min-width: 600px;
        max-width: 85vw;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        padding: 1.5rem;
    }
}

@media (max-width: 1000px) {
    .dropdown-content {
        min-width: 500px;
        max-width: 80vw;
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
    
    /* Always position from right on smaller screens for last dropdowns */
    .dropdown:last-child .dropdown-content,
    .dropdown:nth-last-child(2) .dropdown-content {
        right: 0;
        left: auto;
    }
}

@media (max-width: 900px) {
    .dropdown-content {
        min-width: 400px;
        max-width: 75vw;
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    /* Ensure certifications dropdown doesn't overflow */
    .dropdown:last-child .dropdown-content {
        right: 0;
        left: auto;
        transform: translateX(0);
    }
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-section h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
}

.dropdown-section a {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.4;
}

.dropdown-section a:hover {
    color: #1e40af;
    background: #f1f5f9;
    padding-left: 0.5rem;
}

/* Certifications dropdown specific styling */
.dropdown:last-child .dropdown-content {
    /* Make certifications dropdown more compact */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* On medium screens, stack certifications vertically */
@media (max-width: 1100px) {
    .dropdown:last-child .dropdown-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Prevent any dropdown from going off-screen */
.dropdown-content {
    /* Ensure dropdown never exceeds viewport */
    max-width: calc(100vw - 40px);
    /* Add some margin from screen edges */
    margin-left: auto;
    margin-right: auto;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    font-weight: 400;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #fff;
    color: #1e40af;
}

.btn-primary:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: #fff;
    color: #1e40af;
}

.hero-stats {
    background: rgba(255,255,255,0.1);
    padding: 2rem 0;
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* About Section */
.about {
    padding: 5rem 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.about-text p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
}

.vision-mission {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.vision h4, .mission h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision h4 i, .mission h4 i {
    font-size: 1.2rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 1rem;
}

.feature h4 {
    color: var(--text-dark);
    margin: 1rem 0;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

/* Services Section */
.services {
    padding: 5rem 0;
}

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

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

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #1e40af;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

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

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin: 20px 0 15px 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-family: 'Poppins', sans-serif;
}

.service-card p {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    padding: 0.3rem 0;
    color: #475569;
    position: relative;
    padding-left: 20px;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Certifications Section */
.certifications {
    padding: 5rem 0;
    background: #f8fafc;
}

.cert-categories {
    display: grid;
    gap: 2rem;
}

.cert-category {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cert-category h3 {
    color: #1e40af;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    font-family: 'Poppins', sans-serif;
}

.cert-category h3 i {
    color: #1e40af;
    font-size: 1.2rem;
}

.cert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.cert-item {
    display: block;
    padding: 8px 12px;
    margin: 5px 0;
    background: #f8fafc;
    border-radius: 6px;
    color: #374151;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    font-family: 'Inter', sans-serif;
}

.cert-item:hover {
    background: #e0e7ff;
    color: #1e40af;
    border-left-color: #1e40af;
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

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

.contact-info h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: #1e40af;
    width: 30px;
}

.contact-item h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 10px;
}

.contact-form h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Inter', sans-serif;
    background: var(--white);
}

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

/* Footer */
.footer {
    background: #1e293b;
    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-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-brand h3 {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.footer-section h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
}

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

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

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: #94a3b8;
}

/* Responsive Design */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dropdown-content {
        min-width: 900px;
    }
}

/* Standard Laptops (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .container {
        max-width: 1140px;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dropdown-content {
        min-width: 750px;
    }
}

/* Tablets (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .container {
        max-width: 960px;
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cert-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Tablet Navigation */
    .nav-menu {
        gap: 1.5rem;
    }
    
    .dropdown-content {
        min-width: 600px;
        grid-template-columns: repeat(2, 1fr);
        padding: 1.5rem;
    }
}

/* Mobile Phones (up to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        display: none;
    }
    
    .brand-text {
        font-size: 1.2rem;
    }
    
    .logo {
        height: 40px;
    }
    
    .hero {
        padding-top: 80px;
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .btn {
        width: 250px;
        text-align: center;
        padding: 14px 20px;
    }
    
    .hero-stats {
        padding: 1.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .about {
        padding: 3rem 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .feature i {
        font-size: 2rem;
    }
    
    .services {
        padding: 3rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .certifications {
        padding: 3rem 0;
    }
    
    .cert-list {
        grid-template-columns: 1fr;
    }
    
    .cert-item {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .contact {
        padding: 3rem 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-brand {
        justify-content: center;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
}

/* Small Mobile Phones (up to 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .brand-text {
        display: none; /* Hide text on very small screens */
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .btn {
        width: 200px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
    }
    
    .feature {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .cert-category {
        padding: 1rem;
    }
    
    .cert-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
    }
}

/* Landscape Mobile Phones */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content {
        padding: 2rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero p {
        margin-bottom: 1rem;
    }
    
    .hero-stats {
        padding: 1rem 0;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .hero-buttons,
    .contact-form {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .section-header h2 {
        page-break-after: avoid;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    /* Prevent horizontal scroll on mobile */
    overflow-x: hidden;
}

/* Touch Optimization */
button, .btn, a, input, select, textarea {
    -webkit-tap-highlight-color: rgba(30, 64, 175, 0.3);
    touch-action: manipulation;
}

/* Prevent text selection on interactive elements */
.nav-menu a, .btn, button {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Improve scrolling performance on mobile */
.dropdown-content, .hero, .about, .services, .certifications, .contact {
    -webkit-overflow-scrolling: touch;
}

/* Prevent zoom on form inputs on iOS */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
    font-size: 16px;
}

/* Flexible images */
img {
    max-width: 100%;
    height: auto;
}

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

.service-card,
.feature,
.cert-category {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        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;
    }

    /* Mobile Dropdown Styles */
    .dropdown-content {
        position: static;
        min-width: auto;
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
        border-radius: 6px;
        padding: 1rem;
        background: #f1f5f9;
        margin: 0.5rem 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        border-left: 3px solid #1e40af;
        grid-template-columns: 1fr;
        gap: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }

    .dropdown.active .dropdown-content {
        display: grid;
        max-height: 400px;
        padding: 1rem;
    }

    .dropdown-section {
        margin-bottom: 1rem;
    }

    .dropdown-section h4 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .dropdown-section a {
        padding: 0.3rem 0;
        font-size: 0.85rem;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* Loading Animation */
body {
    opacity: 0;
}

/* Additional responsive adjustments */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
}

/* Service Detail Sections */
.service-detail {
    padding: 80px 0;
    background: #ffffff;
}

.service-detail.alternate {
    background: #f8fafc;
}

.service-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 60px;
    gap: 30px;
}

.service-icon-large {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.2);
}

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

.service-detail-title h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: -0.025em;
    font-family: 'Poppins', sans-serif;
}

.service-subtitle {
    font-size: 1.15rem;
    color: #475569;
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    font-style: italic;
    font-family: 'Source Sans Pro', sans-serif;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.service-description h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-family: 'Poppins', sans-serif;
}

.service-description p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #374151;
    margin-bottom: 28px;
    font-weight: 400;
    text-align: justify;
    hyphens: auto;
    font-family: 'Inter', sans-serif;
}

.read-more-content {
    margin-top: 30px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.read-more-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin: 30px 0 18px 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    font-family: 'Poppins', sans-serif;
    border-left: 4px solid #1e40af;
    padding-left: 15px;
}

.read-more-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.read-more-content ol {
    padding-left: 25px;
    margin-bottom: 25px;
}

.read-more-content li {
    padding: 10px 0;
    color: #374151;
    line-height: 1.7;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.read-more-content ul li:last-child,
.read-more-content ol li:last-child {
    border-bottom: none;
}

.read-more-content strong {
    color: #1e293b;
    font-weight: 600;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 24px;
    border-radius: 8px;
    border: 2px solid #1e40af;
    background: transparent;
    color: #1e40af;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.read-more-btn:hover {
    background: #1e40af;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.3);
}

.read-more-btn i {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.read-more-btn.active i {
    transform: rotate(180deg);
}

.service-features {
    background: #ffffff;
    padding: 45px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.service-detail.alternate .service-features {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.service-features h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 28px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.01em;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #f8fafc;
    padding-left: 8px;
    border-radius: 8px;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item i {
    color: #22c55e;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-item span {
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* Enhanced certification categories */
.cert-category {
    position: relative;
    padding-bottom: 30px;
}

.cert-category .btn {
    margin-top: 20px;
    width: 100%;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: #1e40af;
    border: 2px solid #1e40af;
}

.btn-outline:hover {
    background: #1e40af;
    color: white;
}

/* Responsive adjustments for service details */
@media (max-width: 991px) {
    .service-detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-features {
        position: relative;
        top: auto;
        padding: 35px;
    }
    
    .service-detail-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .service-detail-title h2 {
        font-size: 1.9rem;
        line-height: 1.3;
    }
    
    .service-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 767px) {
    .service-detail {
        padding: 40px 0;
    }
    
    .service-detail-header {
        margin-bottom: 40px;
    }
    
    .service-icon-large {
        width: 60px;
        height: 60px;
    }
    
    .service-icon-large i {
        font-size: 2rem;
    }
    
    .service-detail-title h2 {
        font-size: 1.7rem;
        line-height: 1.3;
    }
    
    .service-subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .service-description h3 {
        font-size: 1.4rem;
        line-height: 1.4;
    }
    
    .service-description p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .service-features {
        padding: 25px;
    }
    
    .read-more-content h4 {
        font-size: 1.15rem;
        margin: 25px 0 15px 0;
        padding-left: 12px;
    }
    
    .read-more-content li {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .read-more-btn {
        font-size: 0.95rem;
        padding: 10px 20px;
    }
}
