/* Global Styles */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #333;
    padding-top: 60px; /* Adjust padding to the height of the fixed header */
}

/* Header Styles */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100vw; /* Set width to 100% of the viewport width */
    position: fixed; /* Fix the header to the top of the page */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensure the header is above other content */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add a subtle shadow for better visibility */
    box-sizing: border-box; /* Ensure padding is included in the width calculation */
}

header .logo {
    font-size: 24px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* Main Content Styles */
main {
    padding: 20px;
}

section {
    margin-bottom: 40px;
    padding: 20px;
    border-radius: 8px;
}

#home {
    display: flex;            /* Enables Flexbox */
    justify-content: center;  /* Centers items horizontally */
    align-items: center;  
    height: auto;     /* Centers items vertically */
}

.profile-image {
    margin: auto;             /* Automatically center the image within #home */
    width: 25%;               /* Scales to 25% of the container width */
    height: auto;             /* Maintains aspect ratio */
    object-fit: contain;      /* Ensures the image fits within the container */
}

.canvas-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1; /* Ensure it is behind the content */
}

#home2 {

width: 0;
height: 0;}
.hero-text {
    top: 0;
    left: 0;
    text-align: center;
    background-color: rgba(0, 128, 128, 0.1); /* Light teal overlay */
    border: 2px solid #008080;               /* Teal border */
    border-radius: 10px;                     /* Rounded corners */
}
/* Base style for all screen sizes */
.phone-portrait {
    section {
        margin-bottom: 40px;
        padding: 20px;
        border-radius: 8px;
    }
    
    #home {
        display: flex;            /* Enables Flexbox */
        justify-content: center;  /* Centers items horizontally */
        align-items: center;  
        height: auto;     /* Centers items vertically */
    }
    
    .profile-image {
        margin: auto;             /* Automatically center the image within #home */
        width: 25%;               /* Scales to 25% of the container width */
        height: auto;             /* Maintains aspect ratio */
        object-fit: contain;      /* Ensures the image fits within the container */
    }
    
    .canvas-container {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: -1; /* Ensure it is behind the content */
    }
    
    .hero-text {
        top: 0;
        left: 0;
        text-align: center;
        background-color: rgba(0, 128, 128, 0.1); /* Light teal overlay */
      /*  border: 2px solid #008080;              /* Teal border */
       border: 2px solid lightblue;               /* Teal border */
        border-radius: 10px;                     /* Rounded corners */
    }
    
   /* background-color: lightblue; Example: Blue for phone portrait */
}

.phone-landscape {
   


    section {
        margin-bottom: 40px;
        padding: 20px;
        border-radius: 8px;
    }

 
    #home {
        display: flex;            /* Enables Flexbox */
        justify-content: center;  /* Centers items horizontally */
        align-items: center;  
        height: auto;     /* Centers items vertically */
    }
    
    .profile-image {
        width: 25%;                /* Adjust size of the image for landscape */
        height: auto;       /* Ensures the image fits within the container */
    }
    
    .canvas-container {
        display: none; /* Hide the canvas-container if ignoring stars */
    }
    
    .hero-text {
        top: 0;
        left: 0;
        text-align: center;
        background-color: rgba(0, 128, 128, 0.1); /* Light teal overlay */
       /*   border: 2px solid #008080;              /* Teal border */
        border: 2px solid lightgreen;               /* Teal border */
        border-radius: 10px;                     /* Rounded corners */
    }
    
    background-color: black;
}

.desktop-portrait {

    section {
        margin-bottom: 40px;
        padding: 20px;
        border-radius: 8px;
    }
    
    #home {
        display: flex;            /* Enables Flexbox */
        justify-content: center;  /* Centers items horizontally */
        align-items: center;  
        height: auto;     /* Centers items vertically */
    }
    
    .profile-image {
        margin: auto;             /* Automatically center the image within #home */
        width: 25%;               /* Scales to 25% of the container width */
        height: auto;             /* Maintains aspect ratio */
        object-fit: contain;      /* Ensures the image fits within the container */
    }
    
    .canvas-container {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: -1; /* Ensure it is behind the content */
    }
    
    .hero-text {
        top: 0;
        left: 0;
        text-align: center;
        background-color: rgba(0, 128, 128, 0.1); /* Light teal overlay */
        border: 2px solid #008080;              /* Teal border */
        /* border: 2px solid lightcoral;                /* Teal border */
        border-radius: 10px;                     /* Rounded corners */
    }
    
   /* background-color: lightcoral;  Example: Coral for desktop portrait */
}

.desktop-landscape {

    section {
        margin-bottom: 40px;
        padding: 20px;
        border-radius: 8px;
    }
    
    #home {
        display: flex;            /* Enables Flexbox */
        justify-content: center;  /* Centers items horizontally */
        align-items: center;  
        height: auto;     /* Centers items vertically */
    }
    
    .profile-image {
        margin: auto;             /* Automatically center the image within #home */
        width: 25%;               /* Scales to 25% of the container width */
        height: auto;             /* Maintains aspect ratio */
        object-fit: contain;      /* Ensures the image fits within the container */
    }
    
    .canvas-container {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        z-index: -1; /* Ensure it is behind the content */
    }
    
    .hero-text {
        top: 0;
        left: 0;
        text-align: center;
        background-color: rgba(0, 128, 128, 0.1); /* Light teal overlay */
       /*   border: 2px solid #008080;              /* Teal border */
       border: 2px solid #008080;              /* Teal border */
        border-radius: 10px;                     /* Rounded corners */
    }

    
   /* background-color: lightgoldenrodyellow;  Example: Yellow for desktop landscape */
}



.scrolling-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #333;
    color: white;
    padding: 10px 0;
}

.scrolling-content {
    display: flex;
    width: 200%; /* Ensure width is more than 100% to allow scrolling */
    animation: scroll 20s linear infinite;
}

.scrolling-content img {
    flex: none;
    padding: 0 20px;
    height: 200px; /* Adjust height as needed */
    width: auto; /* Ensure images are properly scaled */
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Move left by half of the container width */
    }
}


/* About Section Styles */
#about {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.about-container {
    display: flex;
    gap: 20px;
}

.linkedin-badge {
    flex-shrink: 0;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    color: #008080;
    margin-bottom: 10px;
}

.additional-content {
    margin-top: 20px;
}

/* Skills Section Styles */
#skills {
    padding: 20px;
    background-color: #f4f4f4;
}

#skills h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

.skill-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill {
    text-align: center;
    flex: 1 1 150px;
    max-width: 150px;
}

.skill-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.skill-name {
    display: block;
    font-size: 1em;
    color: #333;
}

/* Projects Section Styles */
#projects {
    padding: 40px 20px;
    background-color: #f4f4f4;
}

#projects h2 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
    color: #333;
}

/*#major-projects h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    color: #333;
}*/
#major-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Create a responsive grid with flexible columns */
    gap: 2rem; /* Adjust spacing between the projects */
}


.project-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.project {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure project takes up full width of grid cell */
    max-width: 100%; /* Prevent overflow */
    text-align: center;
}

/*.project {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    width: 100%;
    text-align: center;
}*/


.project h4 {
    margin-top: 0;
    color: #008080;
}

.project-thumbnail {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.project p, .project ul {
    text-align: left;
    line-height: 1.6;
}

.project ul {
    list-style: disc;
    padding-left: 20px;
}

/* Resume Section Styles */
#resume {
    background-color: #fff;
}

.download-button {
    display: inline-block;
    background-color: #008080;
    color: #fff;
    padding: 10px 20px;
    margin: 10px 0;
    text-decoration: none;
    border-radius: 5px;
}

.download-button:hover {
    background-color: #006666;
}

.experience-timeline {
    margin-top: 20px;
}

.experience {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

/* Contact Section Styles */
#contact {
    background-color: #fff;
}

#contact form {
    display: flex;
    flex-direction: column;
}

#contact form input, #contact form textarea {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#contact form button {
    background-color: #008080;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
}

#contact form button:hover {
    background-color: #006666;
}

/* Social Media Links Styles */
.social-media a {
    color: #008080;
    text-decoration: none;
    margin-right: 10px;
}

.social-media a:hover {
    text-decoration: underline;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}

footer .quick-links a {
    color: #008080;
    text-decoration: none;
    margin: 0 10px;
}

footer .quick-links a:hover {
    text-decoration: underline;
}
/* Hide details by default */
.details {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    margin: 0;
    padding-left: 20px; /* Optional indentation for better visual alignment */
}

/* Show details on hover */
.expandable:hover .details {
    display: block;
    max-height: 500px; /* Adjust based on expected content height */
    opacity: 1;
}

/* Optional styling for expandable sections */
.expand {
    cursor: pointer;
    transition: color 0.3s;
}

.expand:hover {
    color: #007acc; /* Optional highlight color on hover */
}
/* Hide details by default */
.details {
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    margin: 0;
    padding-left: 20px; /* Optional indentation for better visual alignment */
}

/* Show details on hover */
.expandable:hover .details {
    display: block;
    max-height: 500px; /* Adjust based on expected content height */
    opacity: 1;
}

/* Optional styling for expandable headings */
.expand {
    cursor: pointer;
    transition: color 0.3s;
}

.expand:hover {
    color: #007acc; /* Optional highlight color on hover */
}

/* Resume Section Styling */
#resume {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#resume h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

#resume h3 {
    font-size: 20px;
    margin-top: 15px;
}

.download-button {
    display: inline-block;
    margin: 10px 0;
    padding: 10px 15px;
    background-color: #007acc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.download-button:hover {
    background-color: #005f99;
}

/* General styling for the Projects section */
#projects {
    font-family: Arial, sans-serif;
    margin: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

#projects h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.project {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background-color: #fff;
    margin-bottom: 1rem;
}
/*@media (max-width: 780px) {
    #major-projects {
        grid-template-columns: 1fr; /* Stack projects vertically on small screens 
    }
}*/
/* Base style for all screen sizes */




