@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #081b29;
    color: #ededed;
    overflow-x: hidden; /* Prevent horizontal scroll from animations */
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    display: flex;
    background: transparent; /* or #081b29 if you want a solid header */
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    position: relative;
    font-size: 25px;
    color: #ededed;
    text-decoration: none;
    font-weight: 600;
}

.logo::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29; /* Corrected hex color */
    animation: showRight 1s ease forwards;
    animation-delay: .4s;
}

.navbar a {
    font-size: 18px;
    color: #ededed;
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: .3s;
}

.navbar a:hover,
.navbar a.active {
    color: #00abf0;
}

/* Common Section Styling (for about, experience, contact) */
/* This will ensure consistent padding and alignment across pages */
.about-section,
.experience-section,
.contact-section { /* Add .portfolio-section when created */
    min-height: 100vh; /* Ensures content takes full viewport height */
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: center; /* Center content vertically */
    padding: 100px 10% 40px; /* Top padding for fixed header, bottom padding for social icons */
}

/* Home Section Specific Styles */
.home-section { /* Changed from .home to .home-section for clarity */
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%; /* Specific padding for home page hero */
    justify-content: space-between; /* Pushes content and image to opposite sides */
}

.home-content,
.about-content, /* Applying similar content block styling */
.experience-content,
.contact-content { /* Add .portfolio-content */
    max-width: 600px;
    flex-basis: 50%; /* Give content equal initial space */
    position: relative; /* Needed for text animations to work correctly */
}

/* Headings in Home Section */
.home-content h1 {
    position: relative;
    font-size: 56px;
    font-weight: 700;
    line-height: 1.2;
}

.home-content h1::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29; /* Corrected hex color */
    animation: showRight 1s ease forwards;
    animation-delay: 1s;
}

.home-content h3 {
    position: relative;
    font-size: 32px;
    font-weight: 700;
    color: #00abf0;
}

.home-content h3::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29; /* Corrected hex color */
    animation: showRight 1s ease forwards;
    animation-delay: 1.3s;
}

.home-content p {
    position: relative;
    font-size: 16px;
    margin: 28px 0 40px;
}

.home-content p::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: #081b29; /* Corrected hex color */
    animation: showRight 1s ease forwards;
    animation-delay: 1.6s;
}

/* Buttons */
.home-content .btn-box {
    display: flex;
    justify-content: space-between;
    width: 345px; /* Corrected semicolon */
    height: 50px;
}

.btn-box a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center; /* Corrected spelling */
    width: 150px;
    height: 100%; /* This means 50px as .btn-box has height 50px */
    background: #00abf0;
    border: 2px solid #00abf0;
    border-radius: 8px;
    font-size: 19px;
    color: #081b29; /* Changed to #081b29 for consistency with background */
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
}

.btn-box a:hover {
    color: #00abf0;
}

.btn-box a:nth-child(2) {
    background: transparent;
    color: #00abf0;
}

.btn-box a:nth-child(2):hover {
    color: #081b29;
}

.btn-box a:nth-child(2)::before {
    background: #00abf0;
}

.btn-box a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #081b29;
    z-index: -1;
    transition: .5s;
}

.btn-box a:hover::before {
    width: 100%;
}

/* Image Section Styles (NEW) */
.home-img {
    position: relative;
    width: 450px; /* Adjust as needed for your image size */
    height: 450px; /* Adjust as needed for your image size */
    border-radius: 50%; /* If you want a circular container, but depends on image */
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #00abf0, #800080); /* Example gradient border/background */
    box-shadow: 0 0 20px #00abf0,
                0 0 60px #00abf0; /* Glowing effect around image */
    overflow: hidden; /* Crucial for the reveal animation */
    flex-shrink: 0; /* Prevents image from shrinking when space is tight */
    margin-left: 50px; /* Space between text and image */
}

/* Optional: Add a subtle animation to the home-img background or border */
.home-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #081b29; /* Background color to cover the image initially */
    animation: revealImage 1s ease forwards; /* Animation name, duration, timing, fill mode */
    animation-delay: 2s; /* Adjust delay to appear after text */
    z-index: 2; /* Ensures it covers the image */
}

.home-img img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the div without distortion */
    border-radius: 50%; /* If your image is circular or you want it to appear so */
    z-index: 1; /* Ensures image is behind the reveal overlay */
    animation: fadeInImage 1s ease forwards; /* Add fade-in animation for image itself */
    animation-delay: 2.5s; /* Slightly delayed from the reveal */
}


/* Social Media Icons (Common for all pages) */
.home-sci,
.about-sci,
.experience-sci,
.contact-sci { /* Add .portfolio-sci */
    display: flex;
    /* These properties are now specifically handled for home-sci vs. other_sci */
}

/* Override .home-sci for home page specifically */
.home-sci {
    position: absolute;
    bottom: 40px;
    left: 10%; /* Align with content */
    width: 178px;
    justify-content: space-between;
}


/* Override for about, experience, contact pages to fix social icon spacing */
.about-sci,
.experience-sci,
.contact-sci {
    position: static; /* CHANGES: This makes the div flow with content */
    margin-top: 40px; /* Adds space above the icons */
    bottom: unset; /* Removes the bottom positioning */
    width: auto; /* IMPORTANT: Let content dictate width, not fixed 178px */
    justify-content: flex-start; /* Aligns them to the start (left) */
    gap: 15px; /* Adds a consistent gap between icons */
}

.home-sci a,
.about-sci a,
.experience-sci a,
.contact-sci a { /* Apply common styles to all social icon links */
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid #00abf0;
    border-radius: 50%;
    font-size: 20px;
    color: #00abf0;
    text-decoration: none;
    z-index: 1;
    overflow: hidden;
    transition: .5s;
    /* margin: 0 5px; -- Removed as 'gap' is used on the parent now for non-home pages */
}

.home-sci a:hover,
.about-sci a:hover,
.experience-sci a:hover,
.contact-sci a:hover {
    color: #081b29;
}

.home-sci a::before,
.about-sci a::before,
.experience-sci a::before,
.contact-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0; /* Corrected colon */
    height: 100%;
    background: #00abf0;
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before,
.about-sci a:hover::before,
.experience-sci a:hover::before,
.contact-sci a:hover::before {
    width: 100%;
}


/* KEYFRAMES ANIMATION */
@keyframes showRight {
    0% { /* Added initial state */
        width: 100%;
    }
    100% {
        width: 0;
    }
}

/* KEYFRAMES ANIMATION for Image Reveal (NEW) */
@keyframes revealImage {
    0% {
        transform: translateX(0); /* Starts fully covering */
        width: 100%;
    }
    100% {
        transform: translateX(100%); /* Slides completely to the right */
        width: 0;
    }
}

/* Optional: Keyframes for image fade in (NEW) */
@keyframes fadeInImage {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* Specific Section Content Styles (You can add more as needed) */
.about-content h1,
.experience-content h1,
.contact-content h1 { /* Add .portfolio-content h1 */
    font-size: 48px; /* Slightly smaller for internal pages, adjust as desired */
    margin-bottom: 20px;
}

.about-content p,
.experience-content p,
.contact-content p { /* Add .portfolio-content p */
    line-height: 1.6;
    margin-bottom: 20px;
}

.experience-content .job-entry {
    margin-bottom: 30px;
}

.experience-content .job-entry h3 {
    color: #00abf0;
    font-size: 28px;
    margin-bottom: 10px;
}

.experience-content .job-entry ul {
    list-style: none; /* Remove default bullet points */
    padding-left: 0; /* Remove default padding */
}

.experience-content .job-entry ul li {
    position: relative;
    padding-left: 20px; /* Space for custom bullet */
    margin-bottom: 8px;
    font-size: 16px;
}

.experience-content .job-entry ul li::before {
    content: '\2022'; /* Unicode for a bullet point */
    color: #00abf0; /* Color the bullet */
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
}

/* Contact Page Specific Styles */
.contact-content .contact-info p {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex; /* For aligning icon with text */
    align-items: center;
}

.contact-content .contact-info p i {
    font-size: 22px;
    color: #00abf0;
    margin-right: 10px;
}

.contact-content .contact-info p a {
    color: #ededed;
    text-decoration: none;
    transition: .3s ease;
}

.contact-content .contact-info p a:hover {
    color: #00abf0;
}


/* Responsive Design (Example - adjust breakpoints as needed) */
@media (max-width: 992px) { /* Adjust breakpoint if needed for image layout */
    .home-section {
        flex-direction: column; /* Stack content and image vertically */
        padding-top: 100px; /* Add padding from header */
        height: auto; /* Allow section to grow */
        justify-content: flex-start; /* Align content to top */
    }

    .home-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px; /* Space between text and image */
    }

    .home-img {
        width: 300px; /* Smaller image on medium screens */
        height: 300px;
        margin-left: 0; /* Remove left margin when stacked */
        margin-bottom: 40px; /* Space below image */
        order: -1; /* Puts image above content on smaller screens */
    }

    .home-content h1,
    .home-content h3,
    .home-content p {
        text-align: center; /* Center align text */
    }

    .home-content .btn-box {
        justify-content: center; /* Center buttons */
        margin: 0 auto 30px; /* Center btn-box horizontally */
    }

    /* Common social icon adjustment for smaller screens */
    .home-sci,
    .about-sci,
    .experience-sci,
    .contact-sci {
        position: static; /* Flow with content */
        width: 100%;
        justify-content: center; /* Center social icons horizontally */
        margin-top: 30px;
    }

    .home-sci a,
    .about-sci a,
    .experience-sci a,
    .contact-sci a {
        margin: 0 8px; /* More space between icons on smaller screens */
    }

    .experience-content .job-entry h3 {
        font-size: 24px;
    }

    .contact-content .contact-info p {
        justify-content: center; /* Center contact info on mobile */
    }
}

@media (max-width: 768px) {
    .header {
        padding: 20px 5%;
    }

    .navbar a {
        margin-left: 20px;
        font-size: 16px;
    }

    .home-section,
    .about-section,
    .experience-section,
    .contact-section {
        padding: 80px 5% 40px; /* Adjust padding for smaller screens */
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 38px;
    }

    .home-content h3 {
        font-size: 24px;
    }

    .home-content p {
        font-size: 14px;
        margin: 15px 0 25px;
    }

    .navbar {
        display: none; /* Hide navbar on very small screens, you might want a hamburger menu (requires JS) */
    }

    .logo {
        font-size: 20px;
    }

    .home-img {
        width: 250px; /* Even smaller image on small screens */
        height: 250px;
    }
}
/* Theme Toggle Button Style */
.theme-toggle {
    background: transparent;
    border: 2px solid #00abf0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 20px;
    color: #00abf0;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    margin-left: 20px; /* Space from navbar */
}

.theme-toggle:hover {
    background: #00abf0;
    color: #081b29;
}
/* Light Mode Styles */
body.light-mode {
    background: #f0f2f5; /* Lighter background */
    color: #333; /* Darker text */
}

body.light-mode .header {
    background: #ffffff; /* White header background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-mode .logo {
    color: #333; /* Darker logo text */
}

body.light-mode .logo::before {
    background: #f0f2f5; /* Match body background */
}

body.light-mode .navbar a {
    color: #555; /* Darker navbar links */
}

body.light-mode .navbar a:hover,
body.light-mode .navbar a.active {
    color: #007bff; /* A different highlight color for light mode */
}

body.light-mode .home-content h3 {
    color: #007bff; /* Light mode accent color */
}

body.light-mode .home-content h1::before,
body.light-mode .home-content h3::before,
body.light-mode .home-content p::before {
    background: #f0f2f5; /* Match light body background */
}

body.light-mode .btn-box a {
    background: #007bff; /* Light mode button background */
    border-color: #007bff;
    color: #fff; /* White text on light button */
}

body.light-mode .btn-box a:hover {
    color: #007bff;
}

body.light-mode .btn-box a:nth-child(2) {
    background: transparent;
    color: #007bff;
}

body.light-mode .btn-box a:nth-child(2):hover {
    color: #fff;
}

body.light-mode .btn-box a:nth-child(2)::before {
    background: #007bff;
}

body.light-mode .btn-box a::before {
    background: #fff; /* Background of hover effect for dark button */
}

body.light-mode .home-img {
    background: linear-gradient(45deg, #007bff, #b366ff); /* Light mode image border gradient */
    box-shadow: 0 0 20px #007bff, 0 0 60px #007bff;
}

body.light-mode .home-img::before {
    background: #f0f2f5; /* Match light body background for reveal */
}

body.light-mode .home-sci a,
body.light-mode .about-sci a,
body.light-mode .experience-sci a,
body.light-mode .contact-sci a {
    border-color: #007bff;
    color: #007bff;
}

body.light-mode .home-sci a:hover,
body.light-mode .about-sci a:hover,
body.light-mode .experience-sci a:hover,
body.light-mode .contact-sci a:hover {
    color: #fff;
}

body.light-mode .home-sci a::before,
body.light-mode .about-sci a::before,
body.light-mode .experience-sci a::before,
body.light-mode .contact-sci a::before {
    background: #007bff;
}

body.light-mode .experience-content .job-entry h3,
body.light-mode .experience-content .job-entry ul li::before,
body.light-mode .contact-content .contact-info p i {
    color: #007bff; /* Light mode accent color for bullets/icons */
}

body.light-mode .contact-content .contact-info p a {
    color: #555; /* Darker link text in light mode */
}

body.light-mode .contact-content .contact-info p a:hover {
    color: #007bff;
}

/* Responsive adjustments for theme toggle */
@media (max-width: 480px) {
    .theme-toggle {
        font-size: 18px;
        width: 35px;
        height: 35px;
        margin-left: auto; /* Push button to right if navbar is hidden */
    }
}
/* Footer Styles */
.footer {
    width: 100%;
    padding: 20px 10%; /* Adjust padding to match your site's layout */
    background: #000; /* Or a slightly darker shade of your background color */
    color: #ededed;
    text-align: center;
    font-size: 14px;
    margin-top: auto; /* Pushes the footer to the bottom in a flex column layout */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* Optional subtle shadow */
}

body.light-mode .footer {
    background: #e0e0e0; /* Lighter background for light mode */
    color: #333;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Ensure body is flex-column for footer to stick to bottom if content is short */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures body takes full viewport height */
}

main {
    flex-grow: 1; /* Allows main content to take up available space */
}
