@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

*{
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

/* Performance: GPU acceleration for animations */
.hub-card, .skill-category, .membership-card, .project-card, .cert-card, .internship-card {
    will-change: transform;
    transform: translateZ(0);
}

html{
   
    scroll-behavior: smooth;
    /* Performance optimization */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body{
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(to right, rgb(255,255,255), rgb(254,215,173));
    /* Performance optimization */
    -webkit-overflow-scrolling: touch;
}

nav {
    width: 100%;
    height: 10vh;
    position: fixed; /* Keeps the nav at the top */
    top: 0;
    left: 0;
    z-index: 1000; /* Ensures it stays above all content */
    background: rgba(252, 230, 196, 0.982); /* Glass effect */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    opacity: 80%;
}


.nav-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.logo{
    color: black;
    font-size: 2rem;
    font-weight: bolder;
}

.logo span{
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

/* Hamburger menu - HIDDEN on desktop, VISIBLE on mobile only */
.hamburg, 
.cancel,
i.hamburg,
i.cancel {
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: black;
    font-size: 2rem;
    display: none !important; /* Force hidden on desktop */
}

/* Only show on mobile/tablet (screens smaller than 885px) */
@media (max-width: 884px) {
    .hamburg, 
    .cancel,
    i.hamburg,
    i.cancel {
        display: block !important; /* Force visible on mobile */
    }
    
    .cancel {
        color: white;
    }
}

.nav-container .links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-container .links a{
    position: relative;
    font-size: 1.2rem;
    color: black;
    text-decoration: none;
    font-weight: 500;
    transform: 0.3s linear;
}

.nav-container .links a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: rgb(109,67, 0);
    transition: 0.2s linear;
}

.nav-container .links a:hover::before{
    width: 100%;
}

.nav-container .contact-btn{
    background-color: transparent;
    padding: 5px 20px;
    border-radius: 20px;
    border: 2px solid rgb(109,67, 0);
    transition: 0.2s linear;
}

.nav-container .contact-btn a{
    color: white;
    transition: 0.3s linear;
}

.nav-container .contact-btn:hover, .nav-container .contact-btn:hover a{
    background-color: rgb(109,67, 0);
    color: white;
}

.nav-container .links a:hover{
    color: rgb(109,67, 0);
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: brightness(40%) blur(5px);
    background-color: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px black;
    transition: 0.3s ease-in-out;
}

.dropdown .links a{
    color: white;
    display: flex;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: rgb(109,67, 0);
}

/* Cancel button styling inside dropdown */
.dropdown .cancel {
    display: block;
    color: white;
}

section{
   width: 100%;
    min-height: 100vh; /* Each section takes at least the full screen */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5%; /* Space for your navbar so it doesn't cover text */
    scroll-margin-top: 10vh; /* Stops the scroll exactly at the section start */
    padding-top: 12vh;
}
.section-title{
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

/* Glowing effect for all title text */
.section-title.glow-title {
    color: rgb(109, 67, 0);
    text-shadow: 
        0 0 5px rgba(109, 67, 0, 0.5),
        0 0 10px rgba(109, 67, 0, 0.3),
        0 0 15px rgba(109, 67, 0, 0.2);
    animation: glowPulse 2s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from {
        text-shadow: 
            0 0 5px rgba(109, 67, 0, 0.5),
            0 0 10px rgba(109, 67, 0, 0.3),
            0 0 15px rgba(109, 67, 0, 0.2);
    }
    to {
        text-shadow: 
            0 0 10px rgba(109, 67, 0, 0.7),
            0 0 20px rgba(109, 67, 0, 0.5),
            0 0 30px rgba(109, 67, 0, 0.3);
    }
}

.main-container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.main-container .image{
    z-index: -1;
    width: 50%;
}

.main-container .image img{
    width: 100%;
}

.main-container .content{
    color: black;
    width: 40%;
    min-height: 100px;
}

.content h1{
    font-size: clamp(1rem, 2rem + 5vw, 3rem);
}

.content h1 span{
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}

.content .typewriter{
    font-weight: 600;
    font-size: clamp(1rem, 1rem + 5vw, 2rem);
}

.content .typewriter span{
    color: rgb(109,67, 0);
    font-size: 2.5rem;
    text-shadow: 0 0 5px rgb(109,67, 0);
    position: relative;
    transition: 0.3s linear;
}

.typewriter span::before{
    content: "Developer";
    animation: words 15s infinite;
}

.typewriter span::after{
    content: "";
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid black;
    animation:  cursor 0.6s linear infinite;
}

@keyframes cursor {
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%, 33%{
        content: "Developer";
    }
    34%, 66%{
        content: "Designer";
    }
    67%, 100%{
        content: "Learner";
    }
}

.content p{
    font-size: clamp(0.4rem, 0.2rem + 9vw, 1rem);
    margin: 10px 0;
}

.social-links i{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background-color:transparent;
    border: 0.2rem solid rgb(109,67, 0);
    border-radius: 50%;
    color:rgb(109,67, 0);
    margin: 5px 10px;
    font-size: 1.5rem;
    transition: 0.2s linear;
}

.social-links i:hover{
    scale: 1.3;
    color: white;
    background-color: rgb(109,67, 0);
    filter: drop-shadow(0 0 10px rgb(109,67,0));
}

.content button{
    width: 40%;
    height: 6vh;
    margin: 30px;
    background-color: rgb(109,67, 0);
    color: white;
    border: none;
    outline: none;
    font-size: 100%;
    font-weight: 700;
    border-radius: 5px;
    transition: 0.2s linear;
}

.content button:hover{
 scale: 1.1;
 color: rgb(109,67, 0);
 border: 2px solid rgb(109,67, 0);
 background-color: transparent;
 font-weight: 700;
 box-shadow: 0 0 40px rgb(109,67, 0);
}

@media (max-width:884px) {
    body{
        overflow-y: visible;
    }

    nav .logo{
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.2rem;
    }

    .main-container{
        display: flex;
        flex-direction: column;
        padding: 20px 10px;
    }

    .nav-container .links{
        display: none;
    }

    .main-container .content{
        width: 95%;
        padding: 10px;
    }

    .content h1{
        font-size: 1.8rem;
    }

    .content .typewriter{
        font-size: 1.2rem;
    }

    .content .typewriter span{
        font-size: 1.5rem;
    }

    .content p{
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .social-links i{
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
        margin: 5px 5px;
    }

    .content button{
        width: 60%;
        height: 50px;
        font-size: 0.9rem;
        margin: 20px 0;
    }

    /* Show hamburger and cancel on mobile */
    .hamburg, .cancel {
        display: block !important;
    }

    .main-container .image{
        width: 90%;
        margin-bottom: 20px;
    }

    .img-frame{
        width: 280px !important;
        height: 280px !important;
        margin: 0 auto;
    }

    /* Dashboard mobile */
    .dashboard-grid{
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }

    .hub-card{
        padding: 20px;
    }

    /* Skills mobile */
    .skills-grid{
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .skill-category{
        padding: 20px;
    }

    /* Certifications mobile */
    .cert-grid{
        grid-template-columns: 1fr !important;
        gap: 20px;
        padding: 0 10px;
    }

    .cert-card{
        margin-bottom: 15px;
    }

    /* Projects mobile */
    .projects-grid{
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    /* Internships mobile */
    .internship-grid{
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .intern-img{
        height: 200px;
    }

    /* About mobile */
    .about-grid{
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-socials{
        flex-direction: column;
        gap: 10px;
    }

    section{
        padding: 80px 3%;
        min-height: auto;
    }

    .section-title{
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
}

img {
    border-radius: 25%;
    width: 100px;
    height: 620px;
    object-fit: cover;
    margin: 0 auto;
    /* Performance: Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}
.image {
    text-align: center;
    padding-top: 20px;
    margin-bottom: 20px;
   


}

/* Dashboard Styles */
#dashboard {
    background: rgba(254, 215, 173, 0.2);
    padding: 100px 5%;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.hub-card {
    background: white;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(109, 67, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hub-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(109, 67, 0, 0.2);
    background: rgb(109, 67, 0);
    color: white;
}

.hub-card i {
    font-size: 3rem;
    color: rgb(109, 67, 0);
    margin-bottom: 20px;
    transition: 0.3s ease;
}

.hub-card:hover i {
    color: white;
    transform: scale(1.1);
}

.hub-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #333;
    transition: 0.3s ease;
}

.hub-card:hover h3 {
    color: white;
}

.hub-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    transition: 0.3s ease;
}

.hub-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* Responsive for tablets */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Responsive for mobile */
@media (max-width: 768px) {
    #dashboard {
        padding: 60px 5%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .hub-card {
        padding: 25px 20px;
        min-height: 160px;
    }
    
    .hub-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .hub-card h3 {
        font-size: 1.2rem;
    }
}

/* Skills Section Styling */
#skills {
    background: #fff; /* White background to distinguish from Dashboard */
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.skill-category {
    background: rgba(254, 215, 173, 0.1);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(109, 67, 0, 0.1);
    transition: 0.3s ease;
}

.skill-category:hover {
    background: white;
    box-shadow: 0 15px 30px rgba(109, 67, 0, 0.1);
    transform: translateY(-5px);
}

.skill-category h3 {
    color: rgb(109, 67, 0);
    margin-bottom: 20px;
    font-size: 1.4rem;
    border-bottom: 2px solid rgb(109, 67, 0);
    display: inline-block;
    padding-bottom: 5px;
}

.skill-category h3 i {
    margin-right: 10px;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    margin-bottom: 12px;
    font-size: 1rem;
    position: relative;
    padding-left: 20px;
}

.skill-category ul li::before {
    content: "▹";
    color: rgb(109, 67, 0);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Memberships Section */
#memberships {
    background: rgba(254, 215, 173, 0.1);
}

.membership-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.membership-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid rgb(109, 67, 0);
    transition: 0.3s ease;
}

.membership-card:hover {
    transform: scale(1.02);
}

.membership-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.membership-header img {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border-radius: 0; /* Keep logos sharp */
}

.membership-header img.acm {
    width: 300px;
    height: 300px;
    object-fit: contain;
    border-radius: 0; /* Keep logos sharp */
}

.logo-placeholder {
    width: 160px;
    height: 160px;
    background: linear-gradient(135deg, rgb(109, 67, 0), rgb(254, 215, 173));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.membership-header h3 {
    font-size: 1.4rem;
    color: #333;
}

.membership-link {
    color: rgb(109, 67, 0);
    text-decoration: none;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.membership-link:hover {
    color: rgb(183, 75, 75);
    text-decoration: underline;
}

.membership-link i {
    font-size: 1rem;
}

.membership-header span {
    color: rgb(109, 67, 0);
    font-weight: 600;
}

.membership-details {
    list-style: none;
}

.membership-details li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #555;
    padding-left: 25px;
    position: relative;
}

.membership-details li::before {
    content: "\f058"; /* FontAwesome check-circle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: rgb(109, 67, 0);
}

/* Project Work Section */
#projects {
    background: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-top: 5px solid rgb(109, 67, 0);
    transition: 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.tech-stack {
    color: rgb(109, 67, 0);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 20px;
}

.project-link {
    color: black;
    font-weight: 700;
    text-decoration: underline;
    transition: 0.3s;
}

.project-link:hover {
    color: rgb(109, 67, 0);
}

/* Certifications Section */
#certifications {
    background: #fff;
    padding: 100px 10%;
}

.cert-grid {
   display: grid;
    /* Forces 3 columns per row for desktop */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    width: 100%;
    max-items: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: white;
    
    overflow: hidden; /* Keeps image corners rounded */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(109, 67, 0, 0.1);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(109, 67, 0, 0.15);
}

.cert-img img {
    width: 100%;
    height: 100%;
    border-radius: 0%;
    object-fit: contain; /* Ensures the certificate photo fits the area nicely */
    border-bottom: 2px solid rgba(109, 67, 0, 0.1);
}

.cert-info {
    padding: 20px;
    text-align: left;
}

.cert-info h3 {
    color: rgb(109, 67, 0);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.cert-info p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

/* --- INTERNSHIP SECTION PERFECT LAYOUT --- */
#internships { 
    background: rgba(254, 215, 173, 0.1); 
    padding: 80px 5%;
}

/* Forces exactly 2 cards side-by-side */
.internship-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.internship-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    border-left: 6px solid rgb(109, 67, 0);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.internship-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(109, 67, 0, 0.15);
}

/* Header with title and badge */
.intern-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.intern-header h3 { 
    color: rgb(109, 67, 0); 
    margin: 0;
    font-size: 1.4rem;
    flex: 1;
    line-height: 1.3;
}

.intern-badge {
    background: linear-gradient(135deg, rgb(109, 67, 0), rgb(183, 75, 75));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Meta information (org and duration) */
.intern-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px dashed rgba(109, 67, 0, 0.2);
}

.intern-org, .intern-duration {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #555;
}

.intern-org i, .intern-duration i {
    color: rgb(109, 67, 0);
    font-size: 1rem;
}

.intern-org {
    font-weight: 600;
    color: #333;
}

/* Details list */
.intern-details {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.intern-details li {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #555;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.intern-details li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: rgb(109, 67, 0);
    font-size: 0.9rem;
}

/* --- IMAGE FIX: Larger and Fully Visible --- */
.intern-img {
    width: 100%;
    height: 280px;
    background: #fdfdfd;
    border: 1px solid #eee;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-top: auto;
}

.intern-img img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 10px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .internship-grid {
        grid-template-columns: 1fr;
    }
    .intern-img {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .internship-card {
        padding: 20px;
    }
    
    .intern-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .intern-badge {
        align-self: flex-start;
    }
    
    .intern-header h3 {
        font-size: 1.2rem;
    }
    
    .intern-img {
        height: 220px;
    }
}

/* Ensure the About section has a white background to contrast */
#about { background: #fff; }

/* --- ABOUT ME SECTION STYLES --- */
#about {
    background: #fff; /* White background to distinguish from other sections */
    padding: 100px 10%;
}

.about-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

/* Mobile optimization for about section */
@media (max-width: 768px) {
    #about {
        padding: 60px 5%;
    }
}


.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Contact Info Card */
.about-card {
    background: rgba(254, 215, 173, 0.1);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(109, 67, 0, 0.1);
}

.about-card h3 {
    color: rgb(109, 67, 0);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.about-card p {
    margin-bottom: 12px;
    font-size: 1rem;
    color: #333;
}

.about-socials {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.about-socials a {
    text-decoration: none;
    color: #000;
    font-weight: 600;
    transition: 0.3s;
}

.about-socials a:hover {
    color: rgb(109, 67, 0);
}

/* SWOT Analysis (Dashed Boxes from Template) */
.swot-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.swot-box {
    border: 2px dashed rgb(109, 67, 0); /* Matches the original template style */
    padding: 20px;
    border-radius: 10px;
    background: transparent;
}

.swot-box h4 {
    color: rgb(109, 67, 0);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Career Objective Card */
.objective-card {
    background: rgb(109, 67, 0);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(109, 67, 0, 0.2);
}

.objective-card h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.objective-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 884px) {
    .about-grid {
        grid-template-columns: 1fr; /* Stacks columns on mobile */
    }
    
    .about-card, .objective-card {
        padding: 20px;
    }
}

/* Additional mobile optimizations */
@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr !important;
    }
    
    .membership-header {
        flex-direction: column;
        text-align: center;
    }
    
    .membership-header img, .membership-header img.acm {
        width: 150px;
        height: 150px;
    }

    .internship-grid {
        grid-template-columns: 1fr;
    }
    
    .intern-img {
        height: 220px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


.img-frame {
    width: 500px;
    height: 500px;
    border-radius: 30%;
    overflow: hidden;
    border: 5px solid white; /* The solid white inner border */
    
    /* THE GLOW EFFECT */
    /* Syntax: box-shadow: horizontal vertical blur spread color */
    box-shadow: 0 0 20px 5px rgba(109, 67, 0, 0.6); 
    
    /* Animation for the glow (Optional) */
    animation: glowPulse 3s infinite alternate;
}

/* Optional: Subtle pulsing animation for the glow */
@keyframes glowPulse {
    from {
        box-shadow: 0 0 15px 2px rgba(109, 67, 0, 0.4);
    }
    to {
        box-shadow: 0 0 30px 10px rgba(109, 67, 0, 0.7);
    }
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; }


/* --- CONTACT SECTION --- */
#contact {
    background: #fff;
    padding: 100px 5%;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info h3 {
    color: rgb(109, 67, 0);
    font-size: 2rem;
    margin-bottom: 15px;
}

.contact-info > p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(254, 215, 173, 0.1);
    border-radius: 10px;
    border-left: 4px solid rgb(109, 67, 0);
    transition: 0.3s ease;
}

.contact-method:hover {
    background: rgba(254, 215, 173, 0.2);
    transform: translateX(10px);
}

.contact-method i {
    font-size: 2.5rem;
    color: rgb(109, 67, 0);
}

.contact-method h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.contact-method p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: rgba(254, 215, 173, 0.05);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid rgba(109, 67, 0, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(109, 67, 0);
    box-shadow: 0 0 0 3px rgba(109, 67, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-whatsapp,
.btn-gmail {
    flex: 1;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-gmail {
    background: rgb(109, 67, 0);
    color: white;
}

.btn-gmail:hover {
    background: rgb(183, 75, 75);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(109, 67, 0, 0.3);
}

.btn-whatsapp i,
.btn-gmail i {
    font-size: 1.2rem;
}

/* Mobile responsiveness for contact section */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    #contact {
        padding: 60px 5%;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .btn-whatsapp,
    .btn-gmail {
        width: 100%;
    }
    
    .contact-method {
        padding: 15px;
    }
    
    .contact-method i {
        font-size: 2rem;
    }
}


/* --- IMAGE MODAL / LIGHTBOX --- */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
}

@keyframes zoomIn {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.modal-close:hover {
    color: rgb(254, 215, 173);
    transform: scale(1.2);
}

#modalCaption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 10px;
    max-width: 80%;
}

/* Make internship images clickable */
.intern-img img {
    cursor: pointer;
    transition: 0.3s ease;
}

.intern-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(109, 67, 0, 0.3);
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }
    
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
    
    #modalCaption {
        font-size: 1rem;
        padding: 10px 20px;
        bottom: 20px;
    }
}
