/* styles.css */
:root {
    --background: #ffffff;
    --foreground: #171717;
    --primary-color: #2E86AB;
    --secondary-color: #6BBF59;
    --accent-color: #FFD166;
    --background-color: #F5F5F5;
    --text-color: #1A1A1A;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --secondary-color-rgb: 107, 191, 89;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #0a0a0a;
        --foreground: #ededed;
    }
}

html, body {
    max-width: 100vw;
    overflow-x: hidden;
    color: var(--foreground);
    background: var(--background);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: inherit;
    text-decoration: none;
}

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: dark;
    }
}

.header {
    position: relative;
    min-height: 80vh;
    max-height: 600px;
    background: var(--background-color);
    color: var(--text-color);
    overflow: hidden;
    box-shadow: 0 2px 15px var(--shadow-color);
    transition: background 0.5s ease;
    z-index: 1;
    will-change: transform, background;
}

.headerScrolled {
    background: linear-gradient(135deg, var(--background-color), rgba(107, 191, 89, 0.1));
    box-shadow: 0 4px 20px var(--shadow-color);
}

.headerContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(245, 245, 245, 0.9);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navScrolled {
    padding: 0.5rem 2rem;
    background: var(--background-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    animation: slideDown 0.3s ease-out;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logoLink:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(107, 191, 89, 0.5);
}

.navToggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
    padding: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.navToggle:hover {
    color: var(--secondary-color);
}

.navToggle.open {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.navLinks {
    display: flex;
    list-style: none;
}

.navLinks li {
    margin-left: 2.5rem;
}

.navLinks a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
}

.navLinks a:hover {
    color: var(--primary-color);
}

.modalContainer {
    display: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    opacity: 1;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
    padding: 2rem;
    display: none;
}

.modal.open {
    transform: translateY(0);
    display: block;
}

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #ccc;
}

.profile {
    display: flex;
    align-items: center;
}

.profileImage img {
    width: 50px;
    height: 50px;
    margin-right: 1rem;
    border-radius: 50%;
    object-fit: cover;
}
@media (max-width: 768px) {
    .profileImage img {
        width: 40px; /* Adjust size for smaller screens */
        height: 40px;
    }
}

.profileInfo h3 {
    margin: 0;
    font-size: 1.2rem;
}

.profileInfo p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.modalClose {
    font-size: 1.5rem;
    cursor: pointer;
}

.modalLinks {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: block;
}

.modalLinks li {
    padding: 1.5rem 0;
    border-bottom: 1px solid #ccc;
}

.modalLinks a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #000;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.modalLinks a i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.modalLinks a:hover {
    color: #007bff;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.heroText {
    flex: 2;
}

.title {
    font-size: 3.5rem;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: scaleFadeIn 1s ease-in;
}

.subtitle {
    font-size: 1.6rem;
    color: #666;
    margin-bottom: 2rem;
    font-family: 'Roboto', sans-serif;
    animation: fadeIn 1s ease-in 0.2s backwards;
}

.cta {
    background: var(--primary-color);
    border: none;
    padding: 0.9rem 2rem;
    color: #fff;
    font-size: 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, rotate 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-color), 0.3);
}

.cta.hoverScale:hover {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 6px 20px rgba(var(--primary-color), 0.4);
}

.heroImageWrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.imageContainer {
    position: relative;
    width: 250px;
    height: 250px;
    animation: float 3s ease-in-out infinite;
}

.pulseBorder {
    animation: pulseBorder 2s infinite;
}

.imageContainer img {
    width: 100%;
    height: 100%;
    border: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
    border-radius: 50%;
    object-fit: cover;
}

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

/* Particle Effect */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(46, 134, 171, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(107, 191, 89, 0.5) 5px, transparent 6px),
        radial-gradient(circle at 70% 50%, rgba(107, 191, 89, 0.4) 4px, transparent 5px),
        radial-gradient(circle at 10% 70%, rgba(107, 191, 89, 0.3) 3px, transparent 4px),
        radial-gradient(circle at 80% 20%, rgba(107, 191, 89, 0.2) 6px, transparent 7px);
    background-size: 300px 300px;
    background-position: 0 0, 150px 100px;
    animation: particleFlow 6s infinite linear;
}

/* Animations */
@keyframes scaleFadeIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDelay {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0); }
}

@keyframes pulseBorder {
    0% { box-shadow: 0 0 0 0 rgba(var(--secondary-color), 0.5); }
    70% { box-shadow: 0 0 0 10px rgba(var(--secondary-color), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--secondary-color), 0); }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

@keyframes particleFlow {
    0% { background-position: 0 0, 150px 100px; }
    50% { background-position: 30px 30px, 180px 130px; }
    100% { background-position: 0 0, 150px 100px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        min-height: 60vh;
        max-height: 400px;
    }
    .headerContainer {
        padding: 4rem 1rem 1rem 1rem;
    }
    .navLinks {
        display: none;
    }
    .navToggle {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
    }
    .modalContainer {
        display: block;
    }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .heroImageWrapper {
        order: -1;
        margin-bottom: 1rem;
    }
    .title {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1.3rem;
    }
    .imageContainer {
        width: 180px;
        height: 180px;
    }
    .cta {
        padding: 0.7rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header {
        min-height: 50vh;
        max-height: 300px;
    }
    .headerContainer {
        padding: 3rem 0.5rem 0.5rem 0.5rem;
    }
    .hero {
        gap: 0.5rem;
    }
    .modal {
        padding: 1.5rem;
    }
    .modalLinks li {
        padding: 1rem 0;
    }
    .modalLinks a {
        font-size: 1.1rem;
    }
    .modalLinks a i {
        font-size: 1.1rem;
    }
    .title {
        font-size: 2rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .imageContainer {
        width: 140px;
        height: 140px;
    }
    .cta {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
}

/* Additional styles for static site */
main {
    /* max-width: 1200px; */
    margin: 0 auto;
    /* padding: 2rem; */
}

section {
    padding: 4rem 0;
    border-bottom: 1px solid #eee;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--background-color);
    color: var(--text-color);
}
