@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --sideBgColor: black;
    --themeColor: #0089ae;
    --textColor: white;
    --bgColor: white;
    --hoverColor: lightblue; /* fixed lowercase */
    --iconBgColor: #1b1b1b;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    height: 100vh;
    background-color: var(--sideBgColor);
    padding: 15px 30px;
    transition: 0.6s;
    z-index: 99;
    box-shadow: 0 0 10px var(--themeColor);
    overflow: auto;
}

header .profile {
    text-align: center;
    margin: 30px 0;
}

header .profile img {
    width: 180px;
    border-radius: 50%;
    border: 10px solid var(--iconBgColor);
    box-shadow: 0 0 20px var(--themeColor)
}

header .profile h1 {
    color: white;
    font-weight: 500;
}

header .profile .social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-align: center;
    line-height: 37px;
    background-color: var(--iconBgColor);
    color: white;
    font-size: 18px;
    margin: 1.5px;
    transition: 0.4s;
    margin-top: 10px;
}

header .profile .social-icons a:hover {
    background-color: var(--themeColor);
}

header nav {
    margin-top: 40px;
}

header nav ul li {
    list-style: none;
    margin: 15px 0;
}

header nav ul li a {
    text-decoration: none;
    color: lightgray;
    font-size: 15px;
    font-weight: 400;
    padding: 7px 10px;
    display: inline-block;
    margin: 7px 0;
    letter-spacing: 0.6px;
}

header nav ul li a i {
    margin-right: 10px;
    font-size: 20px;
    transition: 0.4s;
}

header nav ul li a:hover {
    transform: translateX(5px);
}

header nav ul li a:hover i {
    color: var(--themeColor);
}

header nav ul li .active i {
    color: var(--themeColor);
}

hr {
    border: 1px dotted var(--themeColor);
    border-radius: 50%;
}

header .footer {
    text-align: center;
    background-color: var(--sideBgColor);
    width: 300px;
    position: fixed;
    color: lightgray;
    font-size: 14px;
    letter-spacing: 0.6px;
    padding: 15px;
    bottom: 0;
    left: 0;
    transition: 0.6s;
}

header .footer p a {
    color: var(--themeColor);
}

#menuBtn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    font-size: 20px;
    width: 40px;
    height: 40px;
    color: white;
    background-color: var(--themeColor);
    text-align: center;
    line-height: 42px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 999;
    transition: transform 0.4s ease, color 0.3s ease;
    transform-origin: center;
    cursor: pointer;
}

#menuBtn:hover {
    background-color: var(--iconBgColor);
}

/* Active state: rotate and change to X */
.mobile-nav-active #menuBtn {
    transform: rotate(90deg); /* optional: adds a nice spin */
}

@media only screen and (max-width: 1050px) {
    header {
        left: -300px;
    }
    header .footer {
        left: -300px;
    }
    #menuBtn {
        display: block;
    }
}





/* HEADER TOGGLE */
.mobile-nav-active header {
    left: 0;
}

.mobile-nav-active header .footer {
    left: 0;
}

main {
    margin-left: 300px;
    background-color: var(--bgColor);
    transition: 0.4s;
}

@media only screen and (max-width: 1050px) {
    main {
        margin-left: 0;
    }
}













/* Reusable centered button wrapper */
.section-button-wrapper {
    text-align: center;
    margin: 50px auto 20px;   /* Good spacing above/below */
    max-width: 600px;
}






/* HOME SECTION */
#home {
    height: 100vh;
    width: 100%;
    background-image: url('assets/images/profilepic.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px;
    position: relative;
    container-type: inline-size;
    background-color: #000;           /* Better fallback than white */
}

/* ────────────────────────────────────────────────
   The only important change — mobile fix
──────────────────────────────────────────────── */
@media screen and (max-width: 900px) {
    #home {
        background-attachment: scroll !important;     /* Disable problematic fixed */
        background-size: cover;                       /* Keep cover - usually best */
        background-position: center 30%;              /* Shift upward so face isn't cut off */
        /* 
           Alternative options you can try instead:
           background-size: contain;
           background-position: center top;
           or
           background-size: 100% auto;
        */
    }
}
/* Position the container as reference */
#home .home-based-in {
    position: absolute;     /* Or use #home { position: relative; } below */
    top: 0;
    right: 0;
    padding: 100px 60px 0 0; /* Space from top-right corner */
    z-index: 2;             /* Above overlay but below main text if needed */
    pointer-events: none;   /* Allows clicks through to buttons/links below */
}

/* Style the actual text */
#home .home-based-in .based-in {
    font-size: 1.2rem;

    background: linear-gradient(to right, red 0%, white 50%, blue 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.4);
    display: inline-block;
}




#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.431);
    z-index: 0;
}

#home .home-row {
    position: relative;
    z-index: 1;
    max-width: 90%;
}

#home .home-row h1 {
    color: white;
    font-size: 60px;
    font-weight: 600;
    letter-spacing: -1px;
    margin-bottom: 10px;
    line-height: 70px;
}

#home .home-row span {
    color: white;
}

#home .home-row p {
    color: whitesmoke;
    font-size: 30px;
    font-weight: 500;
}

#home .home-row p span {
    border-bottom: 4px solid var(--themeColor);
}

.btn {
    display: inline-block;
    font-weight: bold;
    padding: 14px 60px;
    background-color: rgb(155, 0, 0);
    width: fit-content;
    color: white;
    text-decoration: none;
    font-size: 16px;
    border-radius: 8px;
    margin: 30px 3px;
    transition: 0.5s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background-color: rgb(73, 167, 248);
    box-shadow: none;
}


/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Modal Content */
.modal-content {
    background: #2b5876;
    background: -webkit-linear-gradient(to right, black, #2b5876);
    background: linear-gradient(to right, black, #2b5876);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 78, 194, 0.388);
}

.modal-content h3 {
    margin-bottom: 10px;
    color: #cdcdcd;
}

.modal-content p {
    margin-bottom: 20px;
    color: #666666;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.modal-content label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: 600;
    color: #eeeeee;
}

.required {
    color: red;
    font-weight: bold;
  
}

/* Better focus and error state */
.modal-content input:invalid:focus {
    border-color: #e74c3c;
    outline: none;
    border-width: 2px;
}

.modal-content input:valid {
    border-color: #2ecc71;
    border-width: 2px;
}

.modal-content textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;         /* Allows user to resize vertically only (cleaner UX) */
    min-height: 160px;        /* Ensures it's tall even if empty */
    box-sizing: border-box;   /* Keeps padding from breaking width */
}

/* Mobile adjustments */
@container (max-width: 670px) {
    #home {
        padding: 40px 20px;
        background-attachment: scroll !important;  /* Force scroll on mobile */
        background-position: center 30%;/* explicit fallback, just in case */
        text-align: center;
        
    }
    #home .home-based-in {
        text-align: center;
    }
    #home .home-row h1 {
        font-size: 2.2rem;
        letter-spacing: 0;
        line-height: 50px;
    }
    #home .home-row h1 br {
        display: none;
    }
    #home .home-row p {
        font-size: 1.3rem;
        font-weight: 400;
    }
}





















/* ABOUT SECTION */
#about {
    padding: 70px 30px;
    background: #2b5876;
    background: -webkit-linear-gradient(to right, black, #2b5876);
    background: linear-gradient(to right, black, #2b5876);
}

.sub-heading {
    color: whitesmoke; /* fixed invalid smokewhite */
    font-size: 30px;
    margin-bottom: 10px;
    text-align: center;
}

.divider {
    width: 80px;
    height: 4px;
    background-color: var(--themeColor);
    border-radius: 15px;
    margin: 10px auto;
}

.sub-para {
    color: var(--textColor);
    font-size: 15px;
    letter-spacing: 0.4px;
    font-weight: 500;
    margin-top: 15px;
    text-align: left ;
}

#about .about-col {
    display: flex;
    margin-top: 25px;
    gap: 30px;
}

#about .about-col .img-col {
    flex-basis: 35%;
    text-align: center;
}

#about .about-col .img-col img {
    width: 100%;
    border-radius: 15px;
    border: 4px solid var(--themeColor);
}

#about .about-col .info-col {
    flex-basis: 70%;
}

#about .about-col .info-col h2 {
    color: var(--textColor);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

#about .about-col .info-col p {
    color: var(--textColor);
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

#about .about-col .info-col .icon-list-col {
    display: flex;
    margin: 20px 0;
    gap: 40px;
}

#about .about-col .info-col .icon-list-col ul {
    list-style: none;
}

#about .about-col .info-col .icon-list-col ul li {
    margin: 15px 0;
}

#about .about-col .info-col .icon-list-col ul li i {
    color: var(--themeColor);
}

#about .about-col .info-col .icon-list-col ul li strong {
    color: white;
    font-weight: 600;
    margin-right: 15px;
}

#about .about-col .info-col .icon-list-col ul li span {
    color: var(--textColor);
    font-weight: 500;
    font-size: 15px;
}

@media only screen and (max-width: 900px) {
    #about {
        padding: 30px 10px;
    }
    #about .sub-para {
        font-size: 14px;
        letter-spacing: 0;
        text-align: justify;
    }
    #about .about-col {
        flex-direction: column;
        gap: 20px;
        margin-top: 25px;
    }
    #about .about-col .img-col img {
        width: 50%;
    }
    #about .about-col .info-col h2 {
        font-weight: 600;
        font-size: 25px;
        letter-spacing: 0;
    }
    #about .about-col .info-col p {
        font-size: 14px;
        letter-spacing: 0;
    }
    #about .about-col .info-col .icon-list-col {
        flex-direction: column;
        gap: 0;
    }
    #about .about-col .info-col .icon-list-col ul li {
        margin: 10px 0;
    }
    #about .about-col .info-col .icon-list-col ul li strong {
        font-weight: 500;
        margin-right: 15px;
    }
    #about .about-col .info-col .icon-list-col ul li span {
        color: var(--textColor);
        font-weight: 400;
        font-size: 13px;
    }
}

@media only screen and (max-width: 400px) {
    #about .about-col .img-col img {
        width: 90%;
    }
}























/* SERVICES SECTION - Coming Soon Styling */
#services {
    padding: 80px 30px;
    text-align: center;
    /* background: linear-gradient(to right, black, #2b5876); */
    background: black; 
    min-height: 80vh; /* Gives it good height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coming-soon-container {
    margin-top: 40px;
}

.coming-soon-text {
    color: white;
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.coming-soon-img {
    max-width: 600px;           /* Limits max width on large screens */
    width: 90%;                 /* Responsive */
    margin: 0 auto;             /* Centers the container */
}

.coming-soon-img img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    display: block;
}

/* Optional: Make it smaller and more compact on mobile */
@media (max-width: 768px) {
    .coming-soon-text {
        font-size: 36px;
        margin-bottom: 30px;
    }
    
    #services {
        padding: 60px 20px;
    }
    
    .coming-soon-img {
        width: 95%;
    }
}










/* FACTS SECTION - Balanced height and centered grid */
#fact {
    padding: 80px 30px;                  /* Matches other sections */
    background: #2b5876;
    background: -webkit-linear-gradient(to right, black, #2b5876);
    background: linear-gradient(to right, black, #2b5876);
    text-align: center;
    /* Remove min-height and flex centering to match other sections */
}

#fact .fact-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Slightly larger min-width for better spacing */
    grid-gap: 50px;
    margin-top: 50px;
    justify-content: center;             /* Horizontally centers the items */
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#fact .fact-row .fact-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Keep your existing fact-box inner styles */
#fact .fact-row .fact-box i {
    color: var(--themeColor);
    font-size: 40px;
    margin-bottom: 15px;
}

#fact .fact-row .fact-box strong {
    color: white;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

#fact .fact-row .fact-box p {
    color: var(--textColor);
    font-weight: 500;
    font-size: 16px;
}

@media only screen and (max-width: 700px) {
    #fact {
        padding: 40px 15px;
    }
    #fact .fact-row {
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 30px;
    }
}

@media only screen and (max-width: 370px) {
    #fact .fact-row .fact-box i {
        font-size: 30px;
    }
    #fact .fact-row .fact-box strong {
        font-size: 20px;
    }
    #fact .fact-row .fact-box p {
        font-weight: 400; /* removed px */
        font-size: 14px;
    }
}

/* SKILLS SECTION */
/* SKILLS SECTION */
#skills {
    padding: 70px 30px;
    background-color: black;          /* ← Changed to solid black */
    background-image: none;           /* Remove any previous image if present */
    background-size: cover;
    background-position: center;
}

#skills h1 {
    color: white;
}

#skills .skills-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* fixed from 2fr */
    grid-gap: 50px;
    margin-top: 50px;
}

#skills .skill-logo {
    width: 48px;          /* Smaller size - feels more balanced */
    height: 48px;
    object-fit: contain;  /* Keeps proportions perfect */
}

#skills .skills-row .skills-box .skills-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    align-items: center;
}



#skills .skills-row .skills-box .skills-info h2 {
    color: white;
    font-size: 18px;
    font-weight: 600;
}


#skills .skills-box {
    background-color: rgba(0, 0, 0, 0.65); 
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(2px);
}

#skills .skills-info h2 {
    color: white; 
    margin: 0;
}



/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Tablets: 2 columns */
@media (max-width: 992px) {
    #skills .skills-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    #skills .skills-info h2 {
        font-size: 17px;
    }
}

/* Mobile phones: 1 column (stacked, full width) */
@media (max-width: 600px) {
    #skills {
        padding: 60px 20px;
    }
    
    #skills .skills-row {
        grid-template-columns: 1fr;        /* Single column */
        gap: 30px;
    }
    
    #skills .skills-box {
        padding: 28px 24px;
    }
    
    #skills .skills-info h2 {
        font-size: 19px;                   /* Slightly larger on mobile for readability */
    }
    
    #skills .skill-progress {
        height: 16px;
    }
}


/* PORTFOLIO SECTION */
#portfolio {
    padding: 50px 30px;
    background: linear-gradient(to right, black, #2b5876);
}

#portfolio .port-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 35px;
    margin-top: 50px;
    justify-content: center; /* Ensures items are horizontally centered in their track */
}

#portfolio .port-row .port-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
}

#portfolio .sub-para {
    font-size: 18px;
}


#portfolio .port-row .port-item .port-img {
    height: 100%;
}

#portfolio .port-row .port-item .port-img img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
    display: block;                /* Helps force rendering */
    background-color: #f0f0f0;     /* Fallback color if image fails to load */
    border-radius: 10px;
    transition: transform 0.4s ease;
}

#portfolio .port-row .port-item:hover .port-img img {
    transform: scale(1.1);
}

#portfolio .port-row .port-item .port-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 137, 174, 0.9); /* semi-transparent */
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
    transform: scale(0);
    transition: transform 0.4s ease;
    visibility: hidden;
    border-radius: 10px;
}

#portfolio .port-row .port-item:hover .port-info {
    transform: scale(1);
    visibility: visible;
}

/* Text styling */
#portfolio .port-row .port-item .port-info h4 {
    color: white;
    font-size: 20px;
    margin: 0;
}

#portfolio .port-row .port-item .port-info p {
    color: white;
    font-size: 20px;
    margin: 0;
}

#portfolio .port-row .port-item .port-info a {
    color: white;
    font-size: 24px;
    opacity: 0.8;
    transition: opacity 0.3s;
}

#portfolio .port-row .port-item .port-info a:hover {
    opacity: 1;
}


/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Tablets: 2 columns */
@media (max-width: 992px) {
    #portfolio .port-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    #portfolio .port-row .port-item .port-info h4 {
        font-size: 22px;
    }
    
    #portfolio .port-row .port-item .port-info p {
        font-size: 18px;
    }
}

/* Mobile phones: 1 column (stacked) */
@media (max-width: 600px) {
    #portfolio {
        padding: 50px 15px;
    }
    
    #portfolio .port-row {
        grid-template-columns: 1fr;        /* Single column */
        gap: 30px;
    }
    
    #portfolio .port-row .port-item {
        aspect-ratio: 4 / 5;               /* Slightly taller on mobile for better image view */
    }
    
    #portfolio .port-row .port-item .port-info {
        padding: 18px;
        gap: 14px;
    }
    
    #portfolio .port-row .port-item .port-info h4 {
        font-size: 22px;
    }
    
    #portfolio .port-row .port-item .port-info p {
        font-size: 15px;
    }
    
    #portfolio .port-row .port-item .port-info a {
        font-size: 30px;
    }
}



#services {
    padding: 70px 30px;
    background: linear-gradient(to right, black, #2b5876);
}

.service-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
    justify-content: center;
}

.service-box {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.service-box:hover {
    transform: translateY(-8px);
}

.service-icon {
    font-size: 48px;
    color: var(--themeColor);
    margin-bottom: 20px;
}

.service-info h2 {
    color: white;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-info p {
    color: var(--textColor);
    font-size: 15px;
    line-height: 1.6;
}

#services .info-col p {
    color: var(--textColor);
    font-size: 18px;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: left;
}

@media (max-width: 768px) {
    .service-row {
        grid-template-columns: 1fr;
    }
}