/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Global Reset Styles */
* {
    padding: 0;
    margin: 0;
    outline: none;
    border: none;
    box-sizing: border-box;
}

/* Image Styles */
img {
    width: 100%;
    display: flex;
}

/* Link Styles */
a {
    text-decoration: none;
}

/* Body Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f1c42;
}

/* Navigation Styles */
nav {
    max-width: 1000px;
    margin: auto;
    padding: 1rem 0rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    max-width: 170px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Navigation Link Styles */
.link a {
    position: relative;
    padding-bottom: 0.75rem;
    color: #fff;
}

.link a::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 0;
    bottom: 0;
    left: 0;
    background-color: #cad7ff;
    transition: all 0.3s ease;
}

.link a:hover::after {
    width: 100%;
}

/* Button Styles */
.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    color: #fff;
    background-color: #037dbe;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #025a87;
    transform: translateY(-2px);
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 5rem 2rem;
}

/* Background Blur Effects */
.blur {
    position: absolute;
    box-shadow: 0 0 1000px 50px #2e4ca5;
    z-index: -100;
}

/* Header Styles */
header {
    position: relative;
    padding-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 2rem;
}

/* Main Heading Styles */
header .content h1 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 4rem;
}

header .content h1 span {
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px #fff;
}

/* Paragraph Styles */
header .content p {
    margin-bottom: 2rem;
    color: #ccc;
    line-height: 1.6;
}

/* Image Container Styles */
header .image {
    position: relative;
}

header .image img {
    max-width: 600px;
    margin: auto;
}

/* Section Heading Styles */
header .content h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    font-size: 2rem;
    font-weight: 600;
}

/* Skills Section Styles */
.container .content ul.Skills {
    color: white;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.container .content ul.Skills li {
    margin-bottom: 0.8rem;
}

/* Education Section Styles */
.container .content ul.education {
    color: white;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.container .content ul.education li {
    margin-bottom: 1.5rem;
}

.achievement {
    color: #4CAF50;
    font-style: italic;
    display: block;
    margin-top: 0.5rem;
}

/* Experience Section Styles */
.experience {
    margin-top: 3rem;
}

/* Professional Experience Grid Layout - Stretched horizontally */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Use auto-fit for responsiveness and minmax for stretching */
    gap: 2rem;
    margin-top: 1.5rem;
}

.experience-item {
    color: white;
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #037dbe;
}

.duration {
    color: #4CAF50;
    font-weight: 500;
    display: block;
    margin: 0.5rem 0;
}

.job-description {
    color: #ccc;
    margin-top: 1rem;
    line-height: 1.6;
}

/* Certifications Section Styles */
.certifications {
    margin-top: 3rem;
}

/* Certification Table Layout - 3 Columns, 2 Rows */
.cert-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three columns */
    grid-template-rows: repeat(2, auto); /* Two rows, auto height */
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cert-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    color: white;
}

.cert-date {
    color: #4CAF50;
    display: block;
    margin: 0.5rem 0;
    font-weight: 500;
}

.cert-id {
    color: #ccc;
    font-size: 0.9rem;
    font-family: monospace;
}

/* Training/Projects Section Styles - Side by Side */
.container .content ul.training {
    color: white;
    list-style-type: none;
    padding: 0;
    display: grid; /* Use grid for side-by-side layout */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Two columns, responsive */
    gap: 2rem; /* Gap between projects */
}

.container .content ul.training li {
    margin-bottom: 0; /* Remove individual item margin as gap handles it */
    padding: 1.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #ff6b35;
    height: 100%; /* Ensure items stretch to fill row height */
}

.project-date {
    color: #ff6b35;
    font-weight: 500;
    display: block;
    margin: 0.5rem 0;
}

.project-description {
    color: #ccc;
    margin-top: 1rem;
    line-height: 1.6;
}

.container .content ul.training li strong {
    font-weight: bold;
    color: #fff;
}

/* Footer Styles */
footer {
    position: relative;
    grid-template-columns: 1fr repeat(3, 1fr); /* Default to 4 columns */
    gap: 2rem;
    padding: 5rem 2rem; /* Add padding to footer */
    display: grid; /* Ensure grid display */
}

footer .column .logo {
    max-width: 100px;
    margin-bottom: 2rem;
}

footer .column p {
    color: #ccc;
    margin-bottom: 1rem; /* Adjusted margin for better spacing */
}

/* Social Media Links */
footer .column .socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem; /* Add margin to separate from text */
}

footer .column .socials a {
    color: #ccc;
    padding: 5px 10px;
    font-size: 2rem;
    transition: color 0.3s ease;
}

footer .column .socials a:hover {
    color: #037dbe;
}

footer .column h4 {
    color: #fff;
    margin-bottom: 1.5rem; /* Adjusted margin for better spacing */
    font-size: 1.2rem;
    font-weight: 500;
}

/* Contact Links */
footer .column p a {
    color: #037dbe;
    transition: color 0.3s ease;
}

footer .column p a:hover {
    color: #4CAF50;
}

/* Hamburger menu icon styles */
.menu-toggle {
    display: none; /* Hidden by default on larger screens */
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 900px) { /* Changed from 'width < 900px' to 'max-width: 900px' for consistency */
    .nav-links {
        display: none; /* Hide navigation links by default on smaller screens */
        flex-direction: column; /* Stack links vertically */
        position: absolute;
        top: 80px; /* Adjust based on your nav height */
        left: 0;
        width: 100%;
        background-color: #0f1c42; /* Same as body background */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 999; /* Ensure it's above other content */
        padding: 1rem 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex; /* Show navigation links when 'active' class is present */
    }

    .nav-links .link {
        margin: 0.5rem 0; /* Add some vertical spacing */
    }

    .menu-toggle {
        display: block; /* Show hamburger icon on smaller screens */
    }
    
    header {
        grid-template-columns: repeat(1, 1fr); /* Stack header content on smaller screens */
    }
    
    header .image {
        grid-area: 1/1/2/2; /* Reorder image to appear above content on mobile */
    }
    
    footer {
        grid-template-columns: 1fr 200px; /* Adjust footer columns for tablet */
    }
    
    /* Mobile Styles for Experience Grid */
    .experience-grid {
        grid-template-columns: 1fr; /* Stack experience items on mobile */
        gap: 1rem;
    }
    
    /* Mobile Styles for Certifications Table */
    .cert-table {
        grid-template-columns: 1fr; /* Stack certification items on mobile */
        gap: 1rem;
    }

    /* Mobile Styles for Projects */
    .container .content ul.training {
        grid-template-columns: 1fr; /* Stack project items on mobile */
        gap: 1rem;
    }
    
    /* Mobile Heading Sizes */
    header .content h1 {
        font-size: 2rem;
        line-height: 2.5rem;
    }
    
    header .content h2 {
        font-size: 1.5rem;
    }
}

/* Additional Mobile Responsive Styles */
@media (max-width: 600px) { /* Changed from 'width < 600px' to 'max-width: 600px' for consistency */
    .container {
        padding: 3rem 1rem; /* Reduce container padding on very small screens */
    }
    
    nav {
        padding: 1rem; /* Adjust navigation padding */
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    footer {
        grid-template-columns: 1fr; /* Stack footer columns on very small screens */
    }
}
