@import url('https://fonts.googleapis.com/css2?family=Georgia:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;600;700&family=Times+New+Roman&display=swap');

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

:root {
    --classic-blue: #1e3a8a;
    --royal-blue: #3b82f6;
    --light-blue: #dbeafe;
    --pure-white: #ffffff;
    --soft-white: #f8fafc;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --border-light: #e5e7eb;
    --shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
    --shadow-soft: 0 2px 8px rgba(30, 58, 138, 0.1);
    --gradient-blue: linear-gradient(135deg, var(--classic-blue), var(--royal-blue));
}

body {
    font-family: 'Lato', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--pure-white);
    padding-top: 90px;
}

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

/* Logo */
.logo img {
    max-height: 55px;         /* keeps it proportional */
    width: auto;              /* auto scales */
    object-fit: contain;      /* prevents distortion */
    display: block;           
    border-radius: 8px;       /* smooth corners */
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15); /* classic soft shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05); /* subtle hover effect */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}


/* Header */
header {
    background: var(--pure-white);
    box-shadow: var(--shadow);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--light-blue);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    min-height: 70px;
    max-width: 1200px;
    margin: 0 auto;
}



/* Navigation - Desktop */
nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

nav li {
    margin: 0 5px;
}

nav a {
    display: block;
    padding: 10px 15px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    background: var(--classic-blue);
    color: var(--pure-white);
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
    transform: translateY(-1px);
}

/* Hamburger Menu */
#hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#hamburger:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

#hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

#hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation Overlay */
#navOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#navOverlay.active {
    display: block;
    opacity: 1;
}

/* Cover Image Section */
.cover-image {
    width: 100%;
    height: 400px; /* Keep a fixed, reasonable height */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0; /* Ensure no spacing above */
    padding: 0;
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* Start from top of the image */
    filter: brightness(70%);
    transition: transform 0.5s ease;
}

.cover-image:hover img {
    transform: scale(1.05);
}

.cover-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.cover-title h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 10px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

.cover-title .accent-line {
    width: 80px;
    height: 4px;
    background-color: #ffcc00;
    margin: 15px auto;
    border-radius: 2px;
}

.cover-title .subtitle {
    font-family: 'Arial', sans-serif;
    font-size: 1.2rem;
    color: #f0f0f0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}


/* Education Profile Section */
.education-profile {
    padding: 60px 20px;
    background: var(--soft-white);
}

.education-profile h1 {
    font-family: 'Georgia', serif;
    font-size: 2.5rem;
    color: black;
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.2;
    font-weight: 700;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

/* Certificate Section */
.certificate {
    position: sticky;
    top: 120px;
}

.certificate img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.certificate img:hover {
    transform: scale(1.02);
}

/* Profile Text Section */
.profile-text {
    background: var(--pure-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--classic-blue);
}

.profile-text h2 {
    font-family: 'Georgia', serif;
    font-size: 2rem;
    color: var(--classic-blue);
    margin-bottom: 25px;
    font-weight: 700;
}

.profile-text p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
}

.profile-text ul {
    margin: 25px 0;
    padding-left: 0;
    list-style: none;
}

.profile-text li {
    position: relative;
    padding: 12px 0 12px 30px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-light);
}

.profile-text li:last-child {
    border-bottom: none;
}

.profile-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--royal-blue);
    font-weight: bold;
    font-size: 18px;
}

.profile-text li:hover {
    background: var(--light-blue);
    padding-left: 35px;
    transition: all 0.3s ease;
}

.profile-text p:last-child {
    background: var(--light-blue);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--royal-blue);
    font-weight: 600;
    color: var(--classic-blue);
    text-align: center;
    margin-top: 30px;
}

/* Footer */
footer {
    background: var(--classic-blue);
    color: var(--pure-white);
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
    font-size: 14px;
}

footer p:last-child {
    margin-bottom: 0;
    font-weight: 600;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    nav ul {
        margin-left: 2rem;
    }
    
    nav li {
        margin: 0 3px;
    }
    
    nav a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .profile-content {
        gap: 30px;
    }
    
    .education-profile h1 {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .header-content {
        padding: 12px 20px;
        min-height: 70px;
    }
    
    /* Show hamburger menu */
    #hamburger {
        display: flex;
        margin-left: auto;
    }
    
    /* Hide desktop navigation and style mobile navigation */
    nav ul {
        display: none;
        position: fixed;
        top: 70px;
        right: 0;
        width: 300px;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        margin-left: 0;
        overflow-y: auto;
        z-index: 999;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    nav ul.active {
        display: flex;
        transform: translateX(0);
    }
    
    nav li {
        margin: 0;
        width: 100%;
        opacity: 0;
        transform: translateX(50px);
        animation: slideIn 0.3s ease forwards;
    }
    
    nav ul.active li {
        animation-delay: calc(var(--i, 0) * 0.1s);
    }
    
    nav ul.active li:nth-child(1) { --i: 1; }
    nav ul.active li:nth-child(2) { --i: 2; }
    nav ul.active li:nth-child(3) { --i: 3; }
    nav ul.active li:nth-child(4) { --i: 4; }
    nav ul.active li:nth-child(5) { --i: 5; }
    nav ul.active li:nth-child(6) { --i: 6; }
    nav ul.active li:nth-child(7) { --i: 7; }
    
    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    nav a {
        padding: 15px 25px;
        border-radius: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        font-size: 16px;
        width: 100%;
        text-align: left;
        color: #000;
        font-weight: 500;
        transition: all 0.3s ease;
    }
    
    nav a:hover,
    nav a.active {
        background: rgba(0, 0, 0, 0.05);
        color: #000;
        transform: none;
        padding-left: 35px;
    }
    
    /* Cover image adjustments */
    .cover-image {
        height: 300px; /* slightly smaller for mobile */
    }

    .cover-title h1 {
        font-size: 1.8rem; /* scale down headline */
        line-height: 1.2;
    }

    .cover-title .subtitle {
        font-size: 1rem; /* scale down subtitle */
    }
    
    /* Profile content stacked */
    .profile-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .certificate {
        position: static;
        text-align: center;
        order: 2;
    }
    
    .certificate img {
        max-width: 85%;
        margin: 0 auto;
        display: block;
    }
    
    .profile-text {
        padding: 35px;
        order: 1;
    }
    
    .education-profile {
        padding: 50px 20px;
    }
    
    .education-profile h1 {
        font-size: 2rem;
        margin-bottom: 35px;
    }
    
    .profile-text h2 {
        font-size: 1.7rem;
        margin-bottom: 20px;
    }
    
    .profile-text p {
        font-size: 15px;
        text-align: left;
        line-height: 1.6;
    }
}

/* ENHANCED MOBILE STYLES FOR SMALL SCREENS (480px and below) */
@media screen and (max-width: 480px) {
    body {
        font-size: 15px;
        padding-top: 75px;
        background: var(--soft-white);
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* ENHANCED HEADER */
    .header-content {
        padding: 15px 18px;
        min-height: 70px;
        background: var(--pure-white);
        border-bottom: 3px solid var(--light-blue);
    }
    
    .logo {
        font-size: 22px;
        color: var(--classic-blue);
        font-weight: 700;
    }
    
    nav ul {
        width: 100%;
        right: 0;
        top: 70px;
        height: calc(100vh - 70px);
        padding: 25px 0;
        background: rgba(248, 250, 252, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: 0 4px 25px rgba(30, 58, 138, 0.15);
    }
    
    nav a {
        padding: 18px 25px;
        font-size: 16px;
        font-weight: 500;
        color: var(--text-dark);
        border-bottom: 1px solid var(--border-light);
        transition: all 0.3s ease;
    }
    
    nav a:hover,
    nav a.active {
        background: var(--light-blue);
        color: var(--classic-blue);
        padding-left: 35px;
        border-left: 4px solid var(--royal-blue);
    }
    
    /* PROFESSIONAL COVER IMAGE SECTION */
    .cover-image {
        height: 400px; /* slightly shorter for mobile */
        margin: 0;
        position: relative;
        background: var(--gradient-blue);
    }

    .cover-image img {
        filter: brightness(40%) contrast(1.05); /* slightly lighter for clarity */
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top; /* ensures top alignment */
    }

    .cover-title {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 320px; /* slightly smaller for mobile */
        padding: 20px 15px; /* reduce padding for small screen */
        text-align: center;
        z-index: 10;
        background: rgba(30, 58, 138, 0.15); /* slightly more transparent */
        backdrop-filter: blur(6px);
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .cover-title h1 {
        font-family: 'Georgia', serif;
        font-size: 1.3rem; /* slightly smaller for readability */
        line-height: 1.3;
        margin-bottom: 15px;
        color: #ffffff;
        font-weight: 700;
        text-shadow: 2px 2px 12px rgba(0,0,0,0.8), 1px 1px 4px rgba(0,0,0,0.9);
        letter-spacing: 0.4px;
        word-spacing: 1px;
    }

    .cover-title .accent-line {
        width: 50px;
        height: 3px;
        margin: 15px auto;
        background: linear-gradient(90deg, #ffcc00, #ffd700);
        border-radius: 3px;
        box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
    }

    .cover-title .subtitle {
        font-family: 'Lato', sans-serif;
        font-size: 0.95rem;
        line-height: 1.3;
        color: #f8fafc;
        font-weight: 500;
        text-shadow: 1.5px 1.5px 8px rgba(0,0,0,0.8);
        letter-spacing: 0.2px;
    }
    /* ENHANCED EDUCATION PROFILE SECTION */
    .education-profile {
        padding: 45px 15px;
        background: var(--pure-white);
        margin: 0;
    }
    
    .education-profile h1 {
        font-family: 'Georgia', serif;
        font-size: 1.6rem;
        color: var(--classic-blue);
        text-align: center;
        margin-bottom: 35px;
        line-height: 1.3;
        font-weight: 700;
        padding: 0 10px;
        position: relative;
    }
    
    .education-profile h1::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: var(--gradient-blue);
        border-radius: 2px;
    }
    
    /* PROFESSIONAL PROFILE CONTENT LAYOUT */
    .profile-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        margin-top: 30px;
    }
    
    /* ENHANCED CERTIFICATE STYLING */
    .certificate {
        order: 1;
        text-align: center;
        padding: 25px 15px;
        background: var(--soft-white);
        border-radius: 15px;
        box-shadow: var(--shadow-soft);
        border: 1px solid var(--border-light);
    }
    
    .certificate img {
        width: 100%;
        max-width: 320px;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
        transition: all 0.3s ease;
        border: 2px solid var(--light-blue);
    }
    
    .certificate img:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 35px rgba(30, 58, 138, 0.25);
    }
    
    /* PROFESSIONAL PROFILE TEXT SECTION */
    .profile-text {
        order: 2;
        background: var(--pure-white);
        padding: 30px 20px;
        border-radius: 15px;
        box-shadow: var(--shadow);
        border-left: 5px solid var(--classic-blue);
        border-top: 1px solid var(--light-blue);
        margin-bottom: 20px;
    }
    
    .profile-text h2 {
        font-family: 'Georgia', serif;
        font-size: 1.4rem;
        color: var(--classic-blue);
        margin-bottom: 20px;
        font-weight: 700;
        line-height: 1.3;
        text-align: center;
        position: relative;
        padding-bottom: 15px;
    }
    
    .profile-text h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 2px;
        background: var(--royal-blue);
        border-radius: 1px;
    }
    
    .profile-text p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 18px;
        color: var(--text-dark);
        text-align: left;
        font-weight: 400;
    }
    
    /* ENHANCED LIST STYLING */
    .profile-text ul {
        margin: 25px 0;
        padding: 0;
        background: var(--soft-white);
        border-radius: 10px;
        padding: 20px 0;
    }
    
    .profile-text li {
        padding: 12px 0 12px 35px;
        margin: 0 15px 12px 15px;
        font-size: 13.5px;
        line-height: 1.5;
        color: var(--text-dark);
        border-bottom: 1px solid var(--border-light);
        position: relative;
        background: var(--pure-white);
        border-radius: 8px;
        padding: 15px 15px 15px 45px;
        margin-bottom: 10px;
        box-shadow: var(--shadow-soft);
        transition: all 0.3s ease;
    }
    
    .profile-text li:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .profile-text li::before {
        content: '✓';
        position: absolute;
        left: 18px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--royal-blue);
        font-weight: bold;
        font-size: 16px;
        background: var(--light-blue);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }
    
    .profile-text li:hover {
        background: var(--light-blue);
        transform: translateX(5px);
        border-left: 3px solid var(--royal-blue);
    }
    
    /* ENHANCED CONTACT INFO STYLING */
    .profile-text p:last-child {
        background: var(--gradient-blue);
        color: var(--pure-white);
        padding: 20px;
        border-radius: 12px;
        font-weight: 600;
        text-align: center;
        margin-top: 25px;
        font-size: 14px;
        line-height: 1.5;
        box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
        border: none;
        border-left: none;
    }
    
    /* ENHANCED FOOTER */
    footer {
        background: var(--gradient-blue);
        color: var(--pure-white);
        text-align: center;
        padding: 35px 15px;
        margin-top: 40px;
        box-shadow: 0 -4px 15px rgba(30, 58, 138, 0.2);
    }
    
    footer p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 8px;
        font-weight: 400;
    }
    
    footer p:last-child {
        font-weight: 600;
        font-size: 14px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

/* Extra small screens optimization */
@media screen and (max-width: 360px) {
    .cover-image {
        height: 400px;
    }
    
    .cover-title {
        width: 50%;
        padding: 20px 12px;
        max-width: 340px;
    }
    
    .cover-title h1 {
        font-size: 0.95rem;
        line-height: 1;
        margin-bottom: 12px;
        letter-spacing: 0.2px;
    }
    
    .cover-title .subtitle {
        font-size: 0.75rem;
        line-height: 1.2;
    }
    
    .cover-title .accent-line {
        width: 40px;
        height: 2px;
        margin: 10px auto;
    }
    
    .education-profile h1 {
        font-size: 1.4rem;
    }
    
    .profile-text {
        padding: 25px 15px;
    }
    
    .profile-text h2 {
        font-size: 1.25rem;
    }
    
    .certificate {
        padding: 20px 10px;
    }
}

/* Smooth scrolling and accessibility */
html {
    scroll-behavior: smooth;
}

nav a:focus,
#hamburger:focus {
    outline: 2px solid var(--royal-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    header {
        position: static;
        box-shadow: none;
    }
    
    body {
        padding-top: 0;
    }
    
    .cover-image {
        height: 150px;
    }
    
    #hamburger,
    #navOverlay {
        display: none;
    }
}