/* ===== CSS Variables ===== */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004c99;
    --primary-light: #3399ff;
    --secondary-color: #00a86b;
    --text-dark: #1a1a2e;
    --text-light: #4a4a68;
    --text-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
    --container-max: 1200px;
    --header-height: 80px;
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== Header Styles ===== */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    border-radius: 8px;
    padding: 0.5rem 0;
}

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

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-left: 1.75rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    margin-top: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 168, 107, 0.75) 100%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-white);
    width: 100%;
    padding: 0 20px;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin-bottom: 2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-cta {
    display: inline-block;
    background: var(--text-white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    background: var(--primary-light);
    color: var(--text-white);
}

/* ===== Main Content ===== */
.main-content {
    margin-top: 0;
}

/* ===== Section Styles ===== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 2rem;
    border-radius: 2px;
}

/* ===== Expertise Section ===== */
.expertise-section {
    background: var(--bg-white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.expertise-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.expertise-image:hover img {
    transform: scale(1.02);
}

.expertise-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.expertise-details {
    display: grid;
    gap: 1.5rem;
}

.expertise-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.expertise-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.expertise-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.expertise-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Projects Section ===== */
.projects-section {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.projects-image img {
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.projects-image:hover img {
    transform: scale(1.02);
}

.projects-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.certification-badge {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    align-items: flex-start;
}

.certification-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.certification-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.certification-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== Environment Section ===== */
.environment-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    text-align: center;
}

.environment-content {
    max-width: 900px;
    margin: 0 auto;
}

.environment-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.environment-section .section-title {
    color: var(--text-white);
}

.environment-section .section-divider {
    background: linear-gradient(90deg, var(--text-white), rgba(255, 255, 255, 0.5));
}

.environment-description {
    font-size: 1.15rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0.95;
}

.environment-cta {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.cta-button {
    display: inline-block;
    background: var(--text-white);
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

/* ===== Footer Styles ===== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--primary-light);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    font-size: 0.95rem;
}

.contact-list li {
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.contact-list strong {
    color: var(--primary-light);
}

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

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-menu a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== Responsive Design - Tablet ===== */
@media (max-width: 968px) {
    :root {
        --header-height: 70px;
    }

    .container {
        padding: 0 15px;
    }

    .nav-menu {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .expertise-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .expertise-image img,
    .projects-image img {
        height: 350px;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* ===== Responsive Design - Mobile ===== */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .logo img {
        height: 40px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-white);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: var(--transition);
        overflow-y: auto;
    }

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

    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: 1rem;
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: var(--bg-light);
        padding-left: 1rem;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-icon {
        transition: var(--transition);
    }

    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }

    .hero {
        min-height: 500px;
        max-height: 700px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    section {
        padding: 3.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .expertise-grid,
    .projects-grid {
        gap: 2.5rem;
    }

    .expertise-image img,
    .projects-image img {
        height: 280px;
    }

    .expertise-description,
    .projects-description {
        font-size: 1rem;
    }

    .expertise-card {
        padding: 1.25rem;
    }

    .certification-badge {
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
    }

    .certification-icon {
        font-size: 2.5rem;
    }

    .environment-icon {
        font-size: 3rem;
    }

    .environment-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

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

    .footer {
        padding: 3rem 0 0;
    }
}

/* ===== Responsive Design - Mobile Portrait ===== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        min-height: 450px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-cta {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }

    section {
        padding: 2.5rem 0;
    }

    .expertise-image img,
    .projects-image img {
        height: 220px;
    }

    .expertise-card {
        padding: 1rem;
    }

    .expertise-icon {
        font-size: 1.5rem;
    }

    .certification-badge {
        padding: 1.25rem;
    }

    .certification-icon {
        font-size: 2rem;
    }

    .environment-icon {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 0.75rem 1.75rem;
        font-size: 0.95rem;
    }
}

/* ===== Responsive Design - Mobile Landscape ===== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 400px;
        max-height: 500px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    section {
        padding: 2rem 0;
    }

    .expertise-image img,
    .projects-image img {
        height: 200px;
    }
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* ===== Print Styles ===== */
@media print {
    .header,
    .footer,
    .hero-cta,
    .cta-button {
        display: none;
    }

    .hero {
        height: auto;
        min-height: 300px;
    }
}
