﻿/* CSS Custom Properties for Easy Theming */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --accent-color: #f9d342; /* Accent color for hover effects */
    --background-color: #ffffff;
    --text-color: #333333;
    --header-bg: linear-gradient(90deg, #007bff, #0056b3);
    --footer-bg: #333333;
    --transition-duration: 0.3s;
    --box-shadow-default: 0px 5px 10px rgba(0, 0, 0, 0.15);
    --box-shadow-hover: 0px 8px 16px rgba(0, 0, 0, 0.2);
}

/* Global Styles */
html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    text-align: center;
    line-height: 1.6;
    padding-bottom: 50px; /* extra space at bottom */
}

/* Header */
header {
    padding: 20px;
    background: var(--header-bg);
    color: #fff !important; /* Force header text color */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform var(--transition-duration) ease-in-out, background 0.5s ease;
}

    header:hover {
        transform: scale(1.02);
    }

    /* Header Title ("MADAN LAL") */
    header h1,
    header .logo {
        color: #fff !important;
        font-weight: bold !important;
    }


    }

    /* Navigation Items */
    header nav ul {
        list-style: none;
        padding: 10px;
        margin: 0 auto;
    }

        header nav ul li {
            display: inline;
            margin: 0 15px;
        }

    header nav a {
        color: #fff !important;
        text-decoration: none;
        font-size: 18px;
        font-weight: bold !important;
        transition: color var(--transition-duration) ease-in-out;
    }

        header nav a:hover {
            color: var(--accent-color);
        }

/* General Anchor Styling (outside header) */
a:not(header nav a) {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color var(--transition-duration) ease-in-out;
}

    a:not(header nav a):hover {
        color: var(--primary-hover);
    }

/* Sections as Separate Boxes */
section {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: var(--box-shadow-default);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    section.visible {
        opacity: 1;
        transform: translateY(0);
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 1px;
    }

/* Project Gallery */
.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.project {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--box-shadow-default);
    width: 300px;
    text-align: center;
    transition: transform var(--transition-duration) ease-in-out, box-shadow var(--transition-duration) ease-in-out;
    color: var(--text-color);
    cursor: pointer;
}

    .project:hover {
        transform: scale(1.05);
        box-shadow: var(--box-shadow-hover);
    }

    .project img {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 10px;
    }

/* Skills & Certifications Lists */
ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    text-align: left;
}

    ul li {
        padding: 10px;
        font-size: 18px;
        border-bottom: 1px solid #eee;
    }

        ul li:last-child {
            border-bottom: none;
        }

/* Contact Form Styling */
form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding: 20px;
    background: #f7f7f7;
    border-radius: 10px;
    box-shadow: var(--box-shadow-default);
}

    form label {
        display: block;
        margin-top: 15px;
        font-weight: bold;
    }

    form input[type="text"],
    form input[type="email"],
    form textarea {
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
    }

    form button {
        margin-top: 20px;
        background-color: var(--primary-color);
        color: white;
        padding: 10px 15px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        font-size: 16px;
        transition: background var(--transition-duration) ease-in-out;
    }

        form button:hover {
            background-color: var(--primary-hover);
        }

/* Footer */
/* Download Resume Button in Footer */
.resume-download {
    text-align: center;
    margin-top: 10px;
}

.resume-download a {
    display: inline-block;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    background: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transition: background var(--transition-duration) ease-in-out;
}

.resume-download a:hover {
    background: var(--primary-hover);
}


/* Responsive Styles */
@media (max-width: 768px) {
    header, section, footer {
        padding: 15px;
    }

        header nav a {
            font-size: 16px;
        }

    .project {
        width: 90%;
    }
}

@media (max-width: 480px) {
    header nav ul li {
        margin: 0 8px;
    }

    section {
        padding: 60px 10px;
    }

    form {
        padding: 15px;
    }
}
