/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth; /* Smooth scrolling between sections */
}

/* Navigation - Floating Effect */
header {
    background: #ffffff;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    margin-left: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #007bff; /* Changes color when you hover */
}

/* Hero Section - Interactive Background */
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, #001f3f 0%, #007bff 100%);
    color: white;
    padding: 0 20px;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: fadeIn Down 1s ease-in;
}

.btn {
    margin-top: 20px;
    padding: 12px 30px;
    background: white;
    color: #007bff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-5px); /* Button pops up slightly */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Projects Grid */
#projects {
    padding: 100px 10%;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Interactive Project Cards */
.project-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border-bottom: 5px solid transparent;
}

.project-card:hover {
    transform: scale(1.03); /* Card grows slightly */
    border-bottom: 5px solid #007bff;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav ul { display: none; } /* Add a hamburger menu later */
    #hero h1 { font-size: 2rem; }
}
/* Skills Section Styling */
#skills {
    padding: 80px 10%;
    background: #fff;
}

.skills-container {
    max-width: 800px;
    margin: 30px auto;
}

.skill-box {
    width: 100%;
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    color: #001f3f;
}

/* The Background Bar */
.progress-line {
    height: 12px;
    width: 100%;
    background: #e0e0e0;
    border-radius: 10px;
    position: relative;
}

/* The Animated Bar */
.progress-line span {
    height: 100%;
    position: absolute;
    background: #007bff;
    border-radius: 10px;
    animation: loadBar 2s ease-out forwards; /* Animation trigger */
    width: 0%; /* Start at 0 */
}

/* Defining the widths for each skill */
.csharp { width: 75% !important; background: #68217a !important; } /* C# Purple */
.python { width: 80% !important; background: #3776ab !important; } /* Python Blue */
.webdev { width: 85% !important; background: #e34c26 !important; } /* HTML Orange */
.pc { width: 85% !important; background: #e3e00d !important; } /* HTML Orange */
.solution { width: 85% !important; background: #2672e3 !important; } /* HTML Orange */
.logistics { width: 90% !important; background: #28a745 !important; } /* Success Green */

/* The Animation Keyframes */
@keyframes loadBar {
    from { width: 0%; }
    /* The final width is handled by the classes above */
}
/* Contact Section Styling */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.contact-icon {
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.contact-icon:hover {
    color: #007bff;
    transform: translateY(-3px);
}

/* Footer Styling */
footer {
    background: #001f3f;
    color: white;
    padding: 40px 10%;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #007bff;
    transform: scale(1.2);
}