:root {
    --primary-color: #ff0044;
    --text-color: #ffffff;
    --bg-color: #000814;
    --nav-height: 80px;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.theme-toggle {
    background-color: #4CAF50; 
    padding: 8px 10px;
    color: white;
    border-radius: 12px;
    transition: background-color 0.3s, transform 0.2s;
}
.theme-toggle:hover {
    background-color: #45a049;
    transform: scale(1.05);
}
.theme-toggle i {
    font-size: 20px;
}

.navbar {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    width: 100%;
    top: 0;
    background-color: #000814;
    z-index: 1000;
}

.logo, .nav-links a {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-decoration: none;
    transition: color 0.3s ease;
    color: #ffffff;
}

.logo::after, .nav-links a::after {
    content: '';
    width: 0;
    height: 5px;
    background: linear-gradient(to right, #4a00e0, #ff007a);
    margin-top: 5px;
    display: block;
    transition: width 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a.active {
    color: transparent;
    background: linear-gradient(to right, #4a00e0, #ff007a);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links a.active::after {
    width: 100px;
}

.nav-links a:hover {
    color: transparent;
    background: linear-gradient(to right, #4a00e0, #ff007a);
    -webkit-background-clip: text;
    background-clip: text;
}

.nav-links a:hover::after {
    width: 100px;
}

.logo {
    font-size: 32px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.highlight {
    color: var(--primary-color);
}
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    display: block;
}

/* Active state – turn into X icon */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}
/* Hide by default */
.menu-toggle {
    display: none;
}

/* Show only on small screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: rgb(228, 223, 223);
}

.wave {
    display: inline-block;
    animation: wave 2s infinite;
}

.name {
    text-decoration: underline;
    text-decoration-color: var(--primary-color);
}

#role {
    font-size: 3rem;
    color: var(--primary-color);
    display: inline-block;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(20deg); }
}
.social-icons a {
    margin-top: 50px;
    width: 50px;
    height: 50px;
    border-radius: 5px;
    box-shadow: 0 0 0.3rem #12f7ff;
}
.social-icons a:hover {
    color: #ff0044;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 0;
}

.image-container {
    width: 350px;
    height: 450px;
    border-radius: 50px;
    overflow: visible;
    position: relative;
}

.image-container img {
    width: 100%;
    height: 100%;
    border-radius: 50px;
    object-fit: cover;
    position: relative;
    z-index: 2;
}




#about-main {
    max-width: 1000px; 
    height: 400px;
    background: linear-gradient(to bottom right, #c4ad52, #77c270, #e02645);
    color: rgb(15, 14, 14); 
    border-radius: 15px;
    padding: 0px 100px 0px 100px;
    margin-left: 300px;
}
#about-main #details h2 {
    font-size: 40px;
    padding: 20px 0px 20px 0px;
    text-align: center;
}
#about-main #details p {
    text-align: justify;
    font-size: 20px;
    padding: 10px;
}
#about-main #details p span {
    font-size: 20px;
    color: rgb(215, 5, 37);
}
#about-main .cvbtn {
    text-decoration: none;
    padding: 15px 30px;
    font-size: 20px;
    background-color: #ff0044;
    color: white;
    border-radius: 8px;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}
.skills-container {
    max-width: 1020px;
    margin: 40px auto;
    margin-left: 280px;
    padding: 50px;
    text-align: center;
    background: linear-gradient(to bottom right, #c4ad52, #77c270, #e02645);
    border-radius: 15px;
    font-family: 'Arial', sans-serif;
}

h1 {
    font-size: 40px;
    color: #101010;
    margin-bottom: 15px;
}

#skill-instruction {
    font-size: 20px;
    color: #0c0b0b;
    margin-bottom: 20px;
}

.categories {
    margin-bottom: 30px;
}

.category-btn {
    padding: 12px 20px;
    margin: 5px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(145deg, #d00404, #0056b3);
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: linear-gradient(145deg, #0056b3, #003b82);
    transform: translateY(-2px);
}

.category-btn.active {
    background: #0056b3;
    color: white;
    transform: scale(1.1);
}

.skills {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
    margin-bottom: 30px;
    justify-content: center;
}

.skills.hidden {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
}

.header {
    width: 100%;
    font-size: 28px;
    color: #555;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), -4px -4px 8px rgba(124, 4, 4, 0.5);
    flex: 1 1 calc(25% - 40px);
    box-sizing: border-box;
    max-width: 250px;
}

.item:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 10px #003a80;
}

.item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.item p {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.hidden {
    display: none;
}

.projects-container {
    padding: 50px;
    max-width: 1050px;
    margin: 20px 0px 50px 270px;
    background: linear-gradient(to bottom right, #c4ad52, #77c270, #e02645);
    border-radius: 25px;
    text-align: center;
}
.projects-container h1 {
    font-size: 40px;
    color: #040404;
    padding: 20px 0px 0px 0px;
    text-align: center;
}
#project-instruction {
    font-size: 20px;
    color: #121010;
    margin-bottom: 20px;
}

.projects-container p {
    color: red;
}
.filter-buttons {
    display: flex;
    justify-content: center;
}
.filter-btn {
    padding: 12px 30px;
    margin: 0 10px;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(145deg, #d00404, #0056b3);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
}
.filter-btn:hover {
    background: linear-gradient(145deg, #0056b3, #003b82);
    transform: scale(1.05);
}
.filter-btn.active {
    background: #0056b3;
    color: white;
    transform: scale(1.05);
}

#projects-grid {
    display: grid;
    grid-template-columns: 33% 33% 33%;
    text-align: center;
    gap: 20px;
    margin-top: 30px;
    padding: 10px;
}
#projects-grid .project {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
#projects-grid .project:hover {
    transform: scale(1.05);
    box-shadow: 10px 10px 20px rgb(112, 112, 208);
}
#projects-grid .project img {
    width: 100%;
    border-radius: 10px;
}
#projects-grid .project h3 {
    color: #1a202c;
    font-size: 1.30rem;
    font-weight: bold;
    margin: 15px 0 10px;
}

#projects-grid .project p {
    color: #4a5568;
    font-size: 20px;
    margin: 0 15px 20px;
    line-height: 1.5;
}
#projects-grid .project p span {
    color: red;
}

#projects-grid .project a {
    display: inline-block;
    font-size: 15px;
    color: #fff;
    background: linear-gradient(90deg, #007bff, #0056b3);
    padding: 10px 15px;
    text-decoration: none;
    margin-bottom: 15px;
    border-radius: 30px;
    transition: background 0.3s ease;
}

#projects-grid .project a:hover {
    background: linear-gradient(90deg, #b80983, #29016d);
}
.services-container {
    max-width: 1040px;
    margin: 40px auto;
    margin-left: 280px;
    padding: 50px;
    text-align: center;
    background: linear-gradient(to bottom right, #c4ad52, #77c270, #e02645);
    border-radius: 15px;
    font-family: 'Arial', sans-serif;
}

.services-container h1 {
    font-size: 40px;
    color: #101010;
    margin-bottom: 20px;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s ease;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1), -4px -4px 8px rgba(124, 4, 4, 0.5);
    flex: 1 1 calc(25% - 40px);
    box-sizing: border-box;
    max-width: 250px;
}

.service-item:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 10px #003a80;
}

.service-item img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.service-item h3 {
    font-size: 18px;
    color: #333;
    font-weight: bold;
}

.container {
    width: 100%;
    max-width: 700px;
    margin-left: 300px;
    border-radius: 20px;
}

.contact-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.contact-info {
    background: linear-gradient(145deg, #a21111, #0056b3);
    color: white;
    padding: 20px;
    border-radius: 20px;
}

.contact-info::before {
    content: '';
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    border-radius: 20px;
}

.contact-info h2 {
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 30px;
    line-height: 1.8;
    font-size: 1.1rem;
}

.info-details {
    margin-top: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.2);
}

.info-item i {
    font-size: 24px;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.social-links {
    margin-top: 60px;
}

.social-links h3 {
    font-size: 24px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 28px;
    transition: all 0.3s ease;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.social-icons a:hover {
    transform: translateY(-5px) rotate(8deg);
    background: rgba(255, 255, 255, 0.2);
}

.contact-form {
    padding: 40px;
    background: linear-gradient(to bottom right, #ad9d5d, #7db178, #962c3e);
    border-radius: 20px;
}

.contact-form h2 {
    color: #080707;
    margin-bottom: 30px;
    font-size: 28px;
}

.contact-form h2::after {
    content: '';
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    border-radius: 2px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #060505;
    font-size: 15px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #080707;
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
    background: white;
}

#submitBtn {
    background: linear-gradient(45deg, #290ac4, #423c93);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

button:active {
    transform: translateY(0);
}
.mail {
    color: white;
    text-decoration: none;
}

footer .container {
    display: flex;
    flex-direction: column;
    background: linear-gradient(45deg, rgba(61, 12, 208, 0.7) 0%, rgba(8, 171, 22, 0.7) 100%);
    color: whitesmoke;
    margin-top: 20px;
    padding: 20px 0;
}

footer p {
    margin: 0;
    font-size: 25px;
    text-align: center;
}

/* Large Desktop (1200px and up) */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1050px;
        margin: 0 270px auto;
    }

    .hero-content {
        gap: 2rem;
    }
}

/* Desktop and Small Laptop (992px to 1199px) */
@media screen and (max-width: 1199px) {
    .container {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 20px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    #role {
        font-size: 2.5rem;
    }

    .hero-content {
        gap: 1.5rem;
    }

    #about-main, 
    .skills-container, 
    .projects-container,
    .services-container {
        margin-left: 100px;
        margin-right: 100px;
    }
}

/* Tablet Landscape (768px to 991px) */
@media screen and (max-width: 991px) {
    .container {
        max-width: 720px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: var(--nav-height);
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .image-container {
        width: 300px;
        height: 400px;
        margin: 0 auto;
    }

    .hero-text {
        order: 0;
    }

    .social-icons {
        order: 1;
        margin-top: 2rem;
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    #role {
        font-size: 2.2rem;
    }

    /* About Section */
    #about-main {
        margin: 40px;
        grid-template-columns: 1fr;
        height: auto;
        padding: 20px;
    }

    #about-main #details h2 {
        padding: 20px 0;
        text-align: center;
    }

    #about-main #img-div img {
        margin: 30px auto;
        display: block;
    }

    /* Skills Section */
    .skills-container {
        margin: 40px;
    }

    .skills {
        flex-wrap: wrap;
        gap: 15px;
    }

    .item {
        flex: 0 1 calc(33.333% - 20px);
        min-width: 200px;
    }

    /* Projects Section */
    .projects-container {
        margin: 40px;
    }

    #projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .filter-buttons {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* Services Section */
    .services-container {
        margin: 40px;
    }

    .services-grid {
        gap: 15px;
    }

    .service-item {
        flex: 0 1 calc(33.333% - 20px);
        min-width: 200px;
    }

    /* Contact Section */
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Tablet Portrait and Large Mobile (576px to 767px) */
@media screen and (max-width: 767px) {
    .container {
        max-width: 540px;
    }

    /* Navigation */
    .navbar {
        padding: 0 20px;
    }

    .logo {
        font-size: 24px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    /* Hero Section */
    .hero-content {
        padding-top: calc(var(--nav-height) + 20px);
    }

    .hero-image {
        margin-bottom: 1.5rem;
    }

    .image-container {
        width: 300px;
        height: 350px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    #role {
        font-size: 2.4rem;
    }

    .social-icons {
        margin-top: 1.1rem;
        gap: 15px;
    }

    /* Skills Section */
    .item {
        flex: 0 1 calc(50% - 15px);
    }

    /* Projects Section */
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .filter-btn {
        width: 100%;
        max-width: 250px;
    }

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

    #projects-grid .project {
        margin: 0 auto;
        max-width: 400px;
    }

    /* Services Section */
    .service-item {
        flex: 0 1 calc(50% - 15px);
    }
}

/* Small Mobile (up to 575px) */
@media screen and (max-width: 575px) {
    .container {
        padding: 0 15px;
    }

    .image-container {
        width: 300px;
        height: 400px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }

    #role {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 2.2rem;
    }

    .social-icons {
        margin-top: 0rem;
        gap: 10px;
    }

    .social-icons a {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* About Section */
    #about-main {
        margin: 20px;
        padding: 15px;
    }

    #about-main #details h2 {
        font-size: 40px;
    }

    #about-main #details p {
        font-size: 16px;
    }

    /* Skills Section */
    .skills-container {
        margin: 20px;
        padding: 20px;
    }

    .item {
        flex: 0 1 100%;
    }

    /* Projects Section */
    .projects-container {
        margin: 20px;
        padding: 15px;
    }

    .projects-container h1 {
        font-size: 40px;
    }

    #project-instruction {
        font-size: 20px;
        margin: 15px;
    }

    .filter-btn {
        max-width: 200px;
        padding: 8px 16px;
        font-size: 18px;
    }
    .project a {
        font-size: 16px;
        font-weight: bold;
    }

    /* Services Section */
    .services-container {
        margin: 20px;
        padding: 20px;
    }

    .service-item {
        flex: 0 1 100%;
    }

    /* Contact Section */
    .contact-wrapper {
        border-radius: 20px;
    }

    .info-item {
        padding: 10px;
    }

    footer p {
        font-size: 16px;
        padding-left: 15px;
    }
}

/* Mobile Menu Animation */
@media screen and (max-width: 767px) {
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Base styles for elements that need consistent styling */
.social-icons {
    display: flex;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* Responsive Typography */
@media screen and (max-width: 1199px) {
    html {
        font-size: 95%;
    }
}

@media screen and (max-width: 991px) {
    html {
        font-size: 90%;
    }
}

@media screen and (max-width: 767px) {
    html {
        font-size: 85%;
    }
}

@media screen and (max-width: 575px) {
    html {
        font-size: 80%;
    }
}



/* New CSS for dynamic scroll loading animations */
.section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}
