/* ===== Root Variables ===== */
:root {
    --green: #28a745;
    --green-dark: #1e7e34;
    --yellow: #ffd400;
    --bg: #ffffff;
    --text: #222;
    --muted: #555;
    --radius: 10px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --max-width: 1100px;
}


html {
    scroll-padding-top: 80px; /* same height as navbar */
}


/* ===== Global ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}
img {
    max-width: 100%;
    display: block;
}
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}



.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--green);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed; /* Stay at top */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

/* Mobile layout */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        background: var(--green);
        position: static; /* no absolute positioning */
        padding: 1rem 0;
        width: 100%;
        display: flex; /* always visible */
    }

    .contact-btn {
        margin-left: auto;
    }

    .menu-toggle {
        display: none; /* no hamburger icon */
    }
}


.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--green);
    padding: 1rem 2rem;
    border-radius: 50px; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: fixed;
    top: 0;
    left: 0%;
    z-index: 1000;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff; /* White for contrast */
}

/* Center links */
.nav-links {
    display: flex;
    gap: 2rem;
    flex: 1;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #fff; /* White links */
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--yellow); /* Yellow hover effect */
}

/* Contact button on far right */
.contact-btn {
    background: var(--yellow); /* Yellow button for contrast */
    color: var(--green-dark);
    padding: 0.5rem 1rem;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-btn:hover {
    background: #fff; /* White hover background */
    color: var(--green-dark);
}

/* Mobile handling */
.menu-toggle {
    display: none;
    color: #fff; /* White toggle icon */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
    }
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--green);
        position: absolute;
        top: 70px; /* Just below navbar */
        left: 0;
        width: 100%;
        padding: 1rem 0;
        border-radius: 0 0 15px 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .contact-btn {
        display: none;
        margin: 1rem auto 0;
        width: fit-content;
    }

    .contact-btn.active {
        display: block;
    }
}



/* ===== Home Section ===== */
/* --- Animations --- */
@keyframes fadeSlideUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.home-section {
    padding: 3rem 20px;
    background: var(--bg);
    margin-top: 4rem; /* pushes entire section down */
}

.home-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25rem; 
    flex-wrap: wrap;
}


.home-text {
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    opacity: 0; /* hidden until animation */
}

.home-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.home-text span {
    color: var(--green-dark);
}

.home-text p {
    font-size: 1.7rem; /* bigger text */
    line-height: 1.8; /* better readability */
    color: var(--muted);
    font-weight: 400;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* clean, modern font */
    letter-spacing: 0.3px;
    margin: 1.5rem 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Subtle hover effect to make it feel alive */
.home-text p:hover {
    transform: translateY(-2px);
    color: var(--green-dark);
}


.btn-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.3s ease;
}

.hire-btn {
    background: var(--green);
    color: #fff;
}

.hire-btn:hover {
    background: var(--green-dark);
    transform: scale(1.05);
}

.portfolio-btn {
    background: var(--yellow);
    color: var(--green-dark);
}

.portfolio-btn:hover {
    background: #fff;
    color: var(--green-dark);
    transform: scale(1.05);
}

.home-image {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0; /* hidden until animation */
}

.home-image img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--yellow);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}



.social-links {
    margin-top: 1.5rem;
    text-align: center; /* center align the icons */
}

.social-links a {
    display: inline-block;
    margin: 0 8px; /* equal spacing on left & right */
    font-size: 1.4rem;
    color: var(--green-dark);
    background: var(--yellow);
    padding: 8px 10px;
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    background: var(--green-dark);
    color: #fff;
    transform: translateY(-4px);
}



/* ===== About Section ===== */
.about-section {
    padding: 3rem 20px;
}

.about-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    flex-wrap: wrap;
}

.about-block {
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    animation: fadeUp 0.8s ease forwards;
}

.about-me {
    background: white;
}

.education {
    background: #d1f2d1;
}

.experience {
    background: white;
}

.skills-stats {
    background: #f4f4f4;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills span {
    background: rgba(0, 128, 0, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
}

.stats {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.stat h4 {
    font-size: 1.8rem;
    color: green;
    font-weight: bold;
}

.download-cv {
    text-align: center;
    margin-top: 2rem;
}

.btn-download {
    background: green;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-download:hover {
    background: darkgreen;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 992px) {
    .about-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .about-row {
        grid-template-columns: 1fr;
    }
}


/* ===== Services Section ===== */
.services-section {
    padding: 4rem 20px;
    background: #ffffff;
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--green-dark);
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-item {
    background: #e6e2e2;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.service-item h3 {
    font-size: 1.5rem;
    color: var(--green);
    margin-bottom: 1rem;
}

.service-item p {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.view-more-btn {
    margin-top: 1rem;
    background: var(--green);
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.view-more-btn:hover {
    background: var(--green-dark);
}

/* Hidden text styling */
.service-more {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.service-more.open {
    max-height: 200px;
    opacity: 1;
}




/* ===== Projects Section ===== */
.projects-section {
    padding: 3rem 20px;
    text-align: center;
}

.projects-section h2 {
    color: var(--green-dark);
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: bold;
    position: relative;
}

.projects-section h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin: 8px auto 0;
    border-radius: 2px;
}



.project-list {
    display: grid;
    gap: 2rem; 
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
}

.project-item img {
    width: 100%;
    height: 330px; 
    object-fit: cover;
    transition: transform 0.5s ease;
}




.project-item {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 8px 25px rgba(0, 0.50, 0, 0.50); /* stronger default shadow */
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
}

.project-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0.23, 0.35); /* much deeper on hover */
}


.project-item:hover img {
    transform: scale(1.08);
}

.project-item h4 {
    padding: 1rem;
    background: var(--yellow);
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
}

/* Simple fade-in animation */
.project-item {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }
.project-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .project-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}




.video-section {
    padding: 4rem 20px;
    text-align: center;
    background: var(--bg);
}

.video-section h2 {
    font-size: 2rem;
    color: var(--green);
    margin-bottom: 0.5rem;
}

.video-section p {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.video-container {
    max-width: 800px; /* Keeps it neat */
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    width: 100%;
    height: 450px; /* Reduced height */
    border: none;
}

/* Responsive */
@media (max-width: 768px) {
    .video-container iframe {
        height: 250px;
    }
}



/* ===== Contact Section ===== */
.contact-section {
    padding: 4rem 20px;
    background: #f8f9fa;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: flex-start;
}

/* Left side text */
.contact-info {
    flex: 1;
    min-width: 280px;
    animation: fadeInLeft 1s ease forwards;
}

.contact-info h2 {
    font-size: 2.2rem;
    color: var(--green-dark);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

/* Right side form */
.contact-form {
    flex: 1;
    min-width: 280px;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    animation: fadeInRight 1s ease forwards;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--green);
}

.contact-form .btn {
    width: 100%;
}

/* Animations */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}



/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 1rem;
    background: var(--green-dark);
    color: #fff;
}


/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: var(--green-dark);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 200px;
        padding: 1rem;
        border-radius: var(--radius);
    }
    .nav-links.show {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .home-content {
        flex-direction: column;
        text-align: center;
    }
}

