/* styles.css */

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Color variables */
:root {
    --primary-color: #139764;
    --secondary-color: #10b340;
    --accent-color: #057542;
    
    --dark-color: #1e293b;
    --light-color: #ffffff;
    --backgroundGradient: linear-gradient(135deg, #139764, #10b340);
}

/* Body styles */
body {
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Navigation styles */
.fixed-nav {
    background-color: var(--light-color);
    color: var(--dark-color);
    position: fixed;
    width: 100%;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: box-shadow 0.4s;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
}


.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color)
    );
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.dark-mode-toggle {
    cursor: pointer;
    padding: 0.5rem;
    /* border-radius: 50%; */
    transition: all 0.3s ease;
    background-color: var(--light-color);
    /* border: 1px solid var(--dark-color); */
}


/* Hero section styles */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    pointer-events: none;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Section styles */
.section {
    padding: 6rem 2.5rem; /* More padding for a balanced look */
    max-width: 1200px;
    margin: 3rem auto; /* Added top and bottom spacing */
    background-color: var(--light-color);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.4s ease, transform 0.3s ease-in-out;
}

.section:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}


.section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 1rem;
}

/* Skills grid styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.skill-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 12px 0 var(--primary-color), 0 0 8px 1px var(--secondary-color), 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s, transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 24px 4px var(--secondary-color), 0 0 16px 2px var(--primary-color), 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.skill-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Projects grid styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px 0 var(--primary-color), 0 0 8px 1px var(--secondary-color), 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s, transform 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.project-card:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 24px 4px var(--secondary-color), 0 0 16px 2px var(--primary-color), 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: var(--secondary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-card h3 {
    margin: 1rem 0;
    color: var(--primary-color);
}

.project-card p {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-image: linear-gradient(
        to right,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.read-more:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
    border-radius: 2px;
}

.read-more:hover::after {
    width: 100%;
}

/* Contact form styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(19, 147, 64, 0.1);
}

.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    background-image: linear-gradient(
        to right,
        var(--primary-color),
        var(--secondary-color)
    );
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: box-shadow 0.4s, transform 0.3s, background 0.3s;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 0 12px 0 var(--primary-color), 0 0 8px 1px var(--secondary-color), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 24px 6px var(--secondary-color), 0 0 16px 2px var(--primary-color), 0 6px 15px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: white;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
    border-radius: 2px;
}

.btn:hover::after {
    width: 100%;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: box-shadow 0.4s, transform 0.3s, background 0.3s;
    box-shadow: 0 0 12px 0 var(--primary-color), 0 0 8px 1px var(--secondary-color), 0 4px 10px rgba(0, 0, 0, 0.15);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: scale(1.13);
    box-shadow: 0 0 24px 6px var(--secondary-color), 0 0 16px 2px var(--primary-color), 0 6px 15px rgba(0, 0, 0, 0.2);
}


/* Footer styles */
footer {
    background-color: var(--backgroundGradient);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--accent-color);
}


.download-pdf {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: box-shadow 0.4s, transform 0.3s, background 0.3s;
    box-shadow: 0 0 12px 0 var(--primary-color), 0 0 8px 1px var(--secondary-color), 0 2px 5px rgba(0, 0, 0, 0.15);
}

.download-pdf:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 0 24px 6px var(--secondary-color), 0 0 16px 2px var(--primary-color), 0 2px 5px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

/* Responsive design */
@media (max-width: 500px) {
    /* Modern glassmorphism effect for navbar */
    .fixed-nav {
        padding: 0.5rem;
        /* background-color: rgba(255, 255, 255, 0.98); */
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        max-height: 55px;
        position: fixed;
    }

    /* Hamburger menu styling */
    .hamburger-menu {
        display: block;
        cursor: pointer;
        padding: 0.3rem;
        z-index: 1001;
        position: absolute;
        right: 0.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger-menu span {
        display: block;
        width: 20px;
        height: 2px;
        background-color: var(--dark-color);
        margin: 4px auto;
        transition: all 0.3s ease;
        border-radius: 1px;
    }

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

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

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

    /* Compact navbar layout */
    .nav-container {
        max-width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        overflow: hidden;
    }

    /* Logo styling */
    .logo {
        font-size: 1rem;
        font-weight: 600;
        color: var(--primary-color);
        letter-spacing: -0.03em;
        transition: color 0.3s ease;
        display: block;
        margin-bottom: 0.25rem;
    }

    /* Navigation links */
    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
        background-color: var(--light-color);
        backdrop-filter: blur(10px);
        border-radius: 0px 0px 300px 300px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 0.75rem;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 80px;
        border-bottom: none;
        transition: all 0.3s ease;
        display: block;
        text-align: center;
        color: var(--dark-color);
        position: relative;
    }

    .nav-links a:hover {
        color: var(--secondary-color);
        background-color: rgba(19, 147, 64, 0.05);
        border-radius: 6px;
    }

    /* Compact button styling */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
        min-width: 80px;
        border-radius: 12px;
        transition: all 0.3s ease;
        display: block;
        width: 100%;
        max-width: 180px;
        margin: 0.5rem auto;
        background-image: linear-gradient(
            to right,
            var(--primary-color),
            var(--secondary-color)
        );
        border: none;
        color: white;
        font-weight: 500;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    }

    .btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Hero section adjustments */
    .hero {
        padding: 0.75rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 1.1rem;
        font-weight: 600;
        letter-spacing: -0.03em;
        margin-bottom: 0.18rem;
        line-height: 1.15;
    }

    .hero-content p {
        font-size: 0.7rem;
        line-height: 1.2;
        color: rgba(0, 0, 0, 0.8);
    }

    /* Section adjustments */
    .section {
        padding: 0.7rem 0.5rem;
        margin: 0.5rem auto;
    }

    .section h2 {
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: -0.03em;
        margin-bottom: 0.3rem;
        color: var(--primary-color);
    }

    /* Social links adjustments */
    .social-links {
        gap: 8px;
        margin: 8px 0;
    }

    .social-links a {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    /* Further font size and spacing optimizations for mobile */
    .skill-card h3,
    .project-card h3 {
        font-size: 0.95rem;
    }
    .project-card p,
    .skill-card p,
    .about-text {
        font-size: 0.75rem;
    }
    .read-more,
    .btn,
    .download-pdf {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }
    .form-group input,
    .form-group textarea {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Optimize image and card sizes for mobile */
    .project-image {
        height: 110px;
        min-height: 80px;
        max-height: 130px;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    .project-card,
    .skill-card {
        padding: 0.7rem 0.5rem;
    }
    .projects-grid {
        gap: 0.7rem;
        padding: 0.5rem 0;
    }
    .skills-grid {
        gap: 0.7rem;
        padding: 0.5rem 0;
    }
    .contact-form {
        padding: 0.7rem 0.5rem;
    }
}