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

body {
    font-family: 'Sour Gummy', sans-serif; /* Changed to Sour Gummy */
    margin: 0;
    padding: 0;
    text-align: center;
    background: linear-gradient(135deg, #6a0dad, #ffdd57);
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Moving Cloudy Sky Background */
.clouds {
    position: fixed;
    top: 0;
    left: 0;
    width: 300%;
    height: 100%;
    background: url('clouds.png') repeat-x;
    animation: moveClouds 105s linear infinite;
    opacity: 0.20;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.6); /* Reduced opacity from 0.9 to 0.6 */
    padding: 1em;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    backdrop-filter: blur(5px); /* Optional: Adds a slight blur effect */
}


/* Title */
h1 {
    font-size: 2.5em;
    color: #ffdd57;
    text-shadow: 2px 2px 8px black;
}


/* Navigation */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
    color: #ffdd57;
    transform: scale(1.1);
}

/* Sections */
section {
    margin: 60px 20px; /* Reduced top and bottom margin */
    padding: 25px 20px; /* Reduced top and bottom padding */
    background: rgba(255, 255, 255, 0.636);
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    color: black;
}


/* Project Cards */
.project {
    margin: 20px;
    padding: 15px;
    border: 2px solid #ffdd57;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.9);
}



@keyframes moveClouds {
    from { background-position: 0 0; }
    to { background-position: -2000px 0; }
}


#about {
    margin-top: 170px; /* Moves About Me slightly down */
}

#projects {
    margin-top: 50px; /* Reduces space between About Me and Projects */
}


/* Resume Page Styles */
/* Resume Page - Organized & Aesthetic Styling */
#resume {
    margin: 120px auto;
    padding: 50px 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(255, 221, 87, 0.4);
    max-width: 900px;
    text-align: left;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeIn 1s ease-in-out;
}

/* Resume Section Styling */
.resume-section {
    margin-bottom: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover Effects - Slight Elevation */
.resume-section:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 221, 87, 0.5);
}

/* Section Titles */
.resume-section h2 {
    color: #ffdd57;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-bottom: 2px solid #ffdd57;
    padding-bottom: 5px;
}

/* Resume Items - Card Style */
.resume-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border-left: 5px solid #ffdd57;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
}

/* Hover Effect */
.resume-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 10px rgba(255, 221, 87, 0.5);
}

/* Job Title & Education Title */
.resume-item h3 {
    font-size: 1.5em;
    color: #ffdd57;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Position/Duration */
.resume-item span {
    font-weight: bold;
    color: #ffdd57;
    display: block;
    margin-bottom: 8px;
}

/* Description */
.resume-item p {
    font-size: 1.1em;
    color: #ddd;
    line-height: 1.6;
    opacity: 0.9;
}

/* Achievement Badges */
.achievement {
    display: inline-block;
    background: #ffdd57;
    color: black;
    font-weight: bold;
    padding: 8px 15px;
    margin: 5px;
    border-radius: 8px;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(255, 221, 87, 0.3);
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    #resume {
        padding: 40px 20px;
    }

    .resume-section h2 {
        font-size: 1.5em;
    }

    .resume-item h3 {
        font-size: 1.3em;
    }

    .resume-item p {
        font-size: 1em;
    }
}


/* No major changes needed in style.css, the existing styles should suffice */

/* Extra styling can be added here if you'd like */
.resume-item p {
    font-size: 1.1em;
    color: #ddd;
    line-height: 1.6;
    opacity: 0.9;
}


/* Header container: Keep logo and name side by side */
.header-container {
    display: flex;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    gap: 2px; /* Reduced gap between logo and name */
    max-width: 100%;
}

/* Logo Styling */
.logo {
    width: 140px; /* Adjust width as needed */
    height: auto;
    flex-shrink: 0; /* Prevents resizing on small screens */
}

/* Name Styling */
.name {
    font-family: "Lavishly Yours", serif;
    font-size: 2.2em; /* Adjusted for better fit */
    color: #ffdd57;
    white-space: nowrap;
    text-shadow: 2px 2px 8px black;
    margin-left: -2px; /* Moves name closer to the logo */
    line-height: 1; /* Removes extra vertical spacing */
}

/* Adjust Header on Small Screens */
@media (max-width: 1024px) {
    .header-container {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        justify-content: center;
        flex-wrap: nowrap; /* Prevents breaking into two lines */
    }

    .logo {
        width: 110px; /* Slightly smaller for better fit */
    }

    .name {
        font-size: 1.9em; /* Adjusted for better alignment */
        margin-left: 3px; /* Small left margin */
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row; /* Keeps logo & name in one line */
        justify-content: center;
        gap: 1px; /* Smallest gap */
    }

    .logo {
        width: 90px; /* Smaller logo for mobile */
    }

    .name {
        font-size: 1.6em; /* Adjusted for mobile fit */
        margin-left: 0px; /* Ensures closeness */
    }
}

/* Fix "My Portfolio" Vertical Spacing */
@media (max-width: 768px) {
    .animate-title {
        margin-top: -10px; /* Moves title up slightly */
    }

    #about {
        margin-top: 230px; /* Moves About Me down */
    }

    #resume {
        margin-top: 230px; /* Moves Resume section down */
    }
}

/* Change color of titles to a darker purple and increase font size */
.purple-title {
    color: #1b0430; /* Darker purple color */
    font-size: 2rem; /* Bigger text size (adjust as needed) */
}

footer {
    background-color: #222; /* Dark background */
    color: #fff; /* White text */
    text-align: center;
    padding: 0px 0;
    font-size: 0.9rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1px;
}

#skills {
    text-align: center; /* Centers everything */
}

.skills-container {
    display: inline-block; /* Ensures the box is only as wide as its content */
    text-align: left; /* Aligns text inside properly */
    padding: 20px; /* Optional: Adds some spacing */
    max-width: 800px; /* Adjust to fit your design */
}

.skills-container p {
    margin: 10px 0; /* Adds spacing between items */
}

.external-link {
    position: relative;
    z-index: 1000; /* Brings links to the front */
    color: #6a0dad !important; /* Only external links stay blue */
    cursor: pointer;
}

/* Styling the contact box */
.contact-box {
    background-color: rgba(255, 255, 255, 0.9); /* Light background to make it stand out */
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px; /* Space between title and box */
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    text-align: left;
    font-size: 1.1em;
}

/* Styling the contact links */
.contact-box a {
    color: #6a0dad; /* Purple color for links */
    text-decoration: none;
    font-weight: bold;
}

.contact-box a:hover {
    color: #ffdd57; /* Yellow on hover */
}

.resume-section .resume-item .achievement {
    color: black !important;
}


@media (max-width: 768px) {
    header {
        padding: 0.5em;
    }
}

/* Targeting tablet portrait mode specifically */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    /* Fix header height issue */
    .header-box {
        height: 200px; /* Set a defined height to avoid overflow */
        overflow: hidden; /* Hide any overflow */
        padding: 0; /* Remove any internal padding */
    }

    /* Ensure About Me section is clearly visible */
    .about-me-section {
        padding-top: 20px; /* Add padding to avoid hiding it under the header */
        margin-top: 20px; /* Ensure there’s a gap */
    }

    /* Prevent extra boxes from appearing before the footer */
    .extra-box {
        display: none !important; /* Hide the extra yellow box */
    }

    /* Ensure proper spacing for the footer */
    footer {
        margin-top: 40px; /* Space above the footer */
        padding: 0;
    }

    /* Remove unnecessary padding or margins from the body */
    body {
        margin: 0;
        padding: 0;
    }

    /* Reset any padding/margin from the main container */
    .container, .content, .main {
        padding: 0;
        margin: 0;
    }

    /* Adjust the box-sizing for the elements */
    * {
        box-sizing: border-box; /* Ensure borders and padding are included in the element's total width and height */
    }
}

/* Ensure links are always underlined */
.external-link {
    text-decoration: underline !important; /* Force underline */
    color: inherit; /* Keep default text color */
    transition: color 0.05s ease-in-out; /* Smooth transition */
}

/* Change color on hover */
.external-link:hover {
    color: #b79922 !important; /* Replace with your yellow color */
}


