* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    background-color: #0a192f; 
     background-image: url("./4.avif"); 
    background-size: cover;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url("./4.avif");
    background-size: cover;
    background-attachment: fixed; 

}

/* Glassmorphism Navbar */
.hero-section1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(46, 77, 71, 0.1);
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;

      background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), url("./4.avif");
    background-size: cover;
    background-attachment: fixed; 
}
/* .mylogo{
    height: 10vh;
    width: 8vw;
} */
/*  .mylogo {
    height: 65px;  
    width: 65px;
    border-radius: 50%;
} */
 .mylogo {
    height: 90px;
    width: 90px;
    border-radius: 70%;              /* Makes it round */
    object-fit: cover;                /* Fits image perfectly */
    border: 2px solid aqua;          /* Aqua outline */
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.6),    /* Close glow */
        0 0 40px rgba(0, 255, 255, 0.4),    /* Extended glow */
        inset 0 0 10px rgba(0, 255, 255, 0.2); /* Inner glow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mylogo:hover {
    transform: scale(1.1);  /* Just scale, no rotation */
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8),
                0 0 60px rgba(0, 255, 255, 0.6);
}
.mylogo {
    object-position: center;
}
.p1 {
    color: rgb(0, 166, 255);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1px;
}

.nav-tags {
    display: flex;
    gap: 30px;
}

.nav-tags a {
    text-decoration: none;
    text-transform: uppercase;
    color: white;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.nav-tags a.active {
    color: aqua;
    text-shadow: 0 0 10px aqua;
    border-bottom: 2px solid aqua;
    padding-bottom: 2px;
}

.nav-tags a:hover {
    color: aqua;
    text-shadow: 0 0 10px aqua;
}

/* Hero Content */
.section2 {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 100px 8%;
    min-height: 80vh;
}

.me {
    flex: 1;
}

.name-gradient {
    background: linear-gradient(90deg, #00f2fe, #4facfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; 
}

h2 {
    font-size: 45px;
    margin-bottom: 15px;
}

p {
    font-size: 18px;
    color: #8892b0;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Image Styling */
.my-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.img-frame {
    width: 300px;
    height: 300px;
    border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; 
    overflow: hidden;
    border: 4px solid aqua;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
    transition: 0.5s;
}

.img-frame:hover {
    border-radius: 50%; 
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;

}

/* Button Container & Styling */
.button-container {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: aqua;
    color: #0a192f;
}

.btn-primary:hover {
    background-color: white;
    transform: translateY(-5px); 
}

.btn-secondary {
    background-color: transparent;
    color: aqua;
    border: 1px solid aqua;
}

.btn-secondary:hover {
    background-color: rgba(0, 255, 255, 0.1);
}

/* --- Additional styles for About Page --- */

.about-layout {
    align-items: flex-start; 
    padding-bottom: 10px;
}

.extra-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px 8%;
    gap: 30px;
    background: rgba(10, 25, 47, 0.5); 
}

.info-card {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid aqua;
}

.info-card h3 {
    color: aqua;
    margin-bottom: 15px;
    font-size: 22px;
}

.info-card ul {
    list-style: none;
    color: #8892b0;
}

.info-card ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

/* Adds a small aqua bullet point */
.info-card ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: aqua;
}

.cta-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* Fix for About Page Image on Mobile */
@media (max-width: 768px) {
    .extra-info {
        flex-direction: column;
    }
}

/* --- Skills Page Styles --- */

.skills-container {
    padding: 60px 8%;
    text-align: center;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    display: inline-block;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    transition: 0.4s ease;
    text-align: left;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: aqua;
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.skill-card h3 {
    color: aqua;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.tech-tags {
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.soft-skills-section {
    max-width: 800px;
    margin: 0 auto 50px auto;
    text-align: left;
}

.soft-skills-section h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
}

/* --- Projects Page Styles --- */

.projects-container {
    padding: 60px 8%;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: 0.4s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: aqua;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.project-img-placeholder {
    height: 180px;
    background: linear-gradient(45deg, #0a192f, #112240);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: bold;
    color: rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.project-img-placeholder img{
    width: 26vw;
    height: 18vh;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    color: aqua;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-info p {
    font-size: 0.95rem;
    color: #8892b0;
    margin-bottom: 20px;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack span {
    font-size: 0.75rem;
    background: rgba(0, 255, 255, 0.1);
    color: aqua;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.project-links {
    display: flex;
    gap: 15px;
}

.btn-link {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}

.btn-link:hover {
    color: aqua;
}

/* --- Contact Page Styles --- */

.contact-layout {
    align-items: center;
    gap: 50px;
}

.contact-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: 0.3s ease;
}

.contact-item:hover {
    border-color: aqua;
    background: rgba(0, 255, 255, 0.05);
    transform: translateX(10px); 
}

.contact-item i {
    font-size: 24px;
    color: aqua;
    width: 40px;
    text-align: center;
}

.contact-item h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 2px;
}

.contact-item p {
    font-size: 15px;
    margin-bottom: 0;
}

.contact-item a {
    color: #8892b0;
    text-transform: none; 
    transition: 0.3s;
}

.contact-item a:hover {
    color: aqua;
}





/* --- COMPREHENSIVE RESPONSIVE DESIGN --- */

/* For Tablets (Screens smaller than 992px) */
@media (max-width: 992px) {
    .section2 {
        padding: 60px 5%;
        gap: 30px;
    }
    
    h2 {
        font-size: 35px; 
    }
}

/* For Mobile Phones (Screens smaller than 768px) */
@media (max-width: 768px) {
    /* 1. Navbar becomes a vertical list for easier tapping */
    .hero-section1 {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }

    .nav-tags {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-tags a {
        font-size: 12px;
    }

    /* 2. Content stacks: Image goes above the text */
    .section2 {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 5%;
        height: auto; 
    }

    .me {
        width: 100%;
    }

    /* 3. Scale text for smaller screens */
    h2 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    /* 4. Center and expand buttons for better touch targets */
    .button-container {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        max-width: 320px; 
        margin: 0 auto;
    }

    /* 5. Size the profile image appropriately */
    .img-frame {
        width: 220px;
        height: 220px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* (Include your previous home page mobile fixes here) */

    /* Stacking the About Me text and image */
    .about-layout {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 5%;
    }

    /* Stacking the Extra Info Cards (Beliefs & Focus) */
    .extra-info {
        flex-direction: column;
        padding: 40px 5%;
        gap: 20px;
    }

    .info-card {
        min-width: 100%;
        width: 100%;
    }

    .info-card h3 {
        font-size: 20px;
    }

    .info-card ul {
        font-size: 16px;
    }

    /* Adjusting the CTA box at the bottom */
    .cta-box {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    /* ... (Keep your previous Home and About mobile fixes here) ... */

    /* Adjust the Skills Container padding */
    .skills-container {
        padding: 40px 5%;
    }

    /* Shrink the section title so it doesn't wrap awkwardly */
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* Force the skills grid into a single column */
    .skills-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    .skill-card {
        padding: 20px;
    }

    .skill-card h3 {
        font-size: 1.2rem;
    }

    /* Soft Skills adjustments */
    .soft-skills-section h2 {
        font-size: 1.5rem;
    }

    .soft-skills-section .info-card ul li {
        font-size: 15px; 
    }
}

@media (max-width: 768px) {
    /* ... (Keep your previous mobile fixes) ... */

    .projects-container {
        padding: 40px 5%;
    }

    .projects-container .hero p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* Force the project cards into a single column */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .project-card {
        max-width: 100%;
    }

    .project-img-placeholder {
        height: 150px; 
        font-size: 1.5rem;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    /* Stack tech tags neatly if they get too long */
    .tech-stack {
        gap: 8px;
    }

    .tech-stack span {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}
 @media (max-width: 768px) {
    /* ... (Include your previous mobile fixes for Home, About, Skills, and Projects) ... */

    /* Stacking the contact info and the image */
    .contact-layout {
        flex-direction: column-reverse;
        text-align: center;
        padding: 40px 5%;
        gap: 30px;
    }

    /* Adjust the contact list spacing */
    .contact-list {
        width: 100%;
        align-items: center;
    }

    .contact-item {
        width: 100%;
        max-width: 400px; /* Prevents icons from stretching too far */
        justify-content: flex-start;
        text-align: left;
    }

    /* Disable the slide-out hover effect on mobile for better stability */
    .contact-item:hover {
        transform: none; 
        border-color: aqua;
    }

    .contact-item i {
        font-size: 20px;
    }

    .contact-item h3 {
        font-size: 15px;
    }

    .contact-item p {
        font-size: 14px;
    }
}

.social-links-section {
    padding: 80px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    background: rgba(10, 25, 47, 0.6);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.social-profile-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
}

.social-profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(0, 255, 255, 0.2);
    border-color: aqua;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
.profile-header {
    margin-bottom: 25px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 3px solid aqua;
    object-fit: cover;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInScale 0.8s ease-out 0.2s both;
}

.profile-avatar:hover {
    transform: scale(1.1);
    border-color: #00f2fe;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
    animation: fadeIn 0.6s ease-out 0.3s both;
}

.profile-location {
    color: aqua;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0;
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.profile-bio {
    margin-bottom: 30px;
    color: #8892b0;
    font-size: 0.95rem;
    line-height: 1.6;
    animation: fadeIn 0.6s ease-out 0.5s both;
}

.social-links-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.social-links-nav li {
    animation: fadeInSlide 0.5s ease-out both;
}

/* Staggered animation delays */
.social-links-nav li:nth-child(1) { animation-delay: 0.6s; }
.social-links-nav li:nth-child(2) { animation-delay: 0.7s; }
.social-links-nav li:nth-child(3) { animation-delay: 0.8s; }
.social-links-nav li:nth-child(4) { animation-delay: 0.9s; }
.social-links-nav li:nth-child(5) { animation-delay: 1s; }

.social-links-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(0, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Sliding background effect */
.social-links-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, aqua, #00f2fe);
    transition: left 0.3s ease;
    z-index: -1;
}

.social-links-nav a:hover::before,
.social-links-nav a:focus::before {
    left: 0;
}

.social-links-nav a:hover,
.social-links-nav a:focus {
    color: #0a192f;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 255, 255, 0.4);
    outline: none;
    border-color: aqua;
}

.social-links-nav a:focus-visible {
    outline: 2px solid aqua;
    outline-offset: 3px;
}

.social-links-nav a:active {
    transform: translateY(-1px);
}

.social-links-nav a i {
    font-size: 1.1rem;
}

.collaboration-cta {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 255, 0.2);
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.collaboration-cta h3 {
    color: aqua;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.collaboration-cta p {
    color: #8892b0;
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.7;
}
.contact-footer {
    background: rgba(10, 25, 47, 0.9);
    padding: 30px 8%;
    text-align: center;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

.contact-footer p {
    color: #8892b0;
    font-size: 0.9rem;
    margin: 0;
}

/* Tablet (992px and below) */
@media (max-width: 992px) {
    .social-links-section {
        padding: 60px 5%;
        gap: 40px;
    }
    .social-profile-card {
        max-width: 380px;
        padding: 35px;
    }
    .collaboration-cta {
        padding: 35px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .social-links-section {
        padding: 50px 5%;
        flex-direction: column;
        gap: 30px;
    }
    .social-profile-card {
        max-width: 100%;
        padding: 30px 25px;
    }
    .profile-avatar {
        width: 88px;
        height: 88px;
    }
    .profile-name {
        font-size: 1.5rem;
    }
    .profile-location {
        font-size: 0.875rem;
    }
    .profile-bio {
        font-size: 0.875rem;
    }
    .social-links-nav a {
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    .social-links-nav a i {
        font-size: 1rem;
    }
    .collaboration-cta {
        max-width: 100%;
        padding: 30px 25px;
    }
    .collaboration-cta h3 {
        font-size: 1.5rem;
    }
    .collaboration-cta p {
        font-size: 0.95rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .social-profile-card {
        padding: 25px 20px;
    }
    .profile-avatar {
        width: 80px;
        height: 80px;
    }
    .profile-name {
        font-size: 1.35rem;
    }
    .social-links-nav a {
        padding: 11px 16px;
        font-size: 0.85rem;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}