


#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100vw;
    min-height: 100vh;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 0.25; /* Adjust for desired darkness */
    pointer-events: none;
    background: #18181f;
}

@media (max-width: 768px) {
    #bg-video {
        display: none;
    }

    html {
        background: black;
        background-attachment: fixed;
    }
}


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

.title {
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
    background: linear-gradient(120deg, #18181f 0%, #232323 100%);
    min-height: 100%;
}

body {
    font-family: 'Montserrat', 'Lora', sans-serif;
    background: transparent;
    color: #f3f3f3;
    line-height: 1.6;
    font-size: 1rem;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}


/* NAVBAR SECTION */

header.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: rgba(20, 20, 20, 0.96);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    z-index: 1000;
    box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid #333;
    backdrop-filter: blur(8px);
    transition: background 0.3s;
}


#greeting-text {
    display: inline-block;
    min-width: 8.5em; /* Adjust as needed for the widest greeting */
    min-height: 2.2em; /* Ensures enough height for both greetings */
    text-align: left;
    white-space: pre;
    vertical-align: middle;
    position: relative;
}

/* Pseudo-element to reserve space for the longest greeting */
#greeting-text::after {
    content: "నమస్తే!"; /* The widest greeting */
    visibility: hidden;
    display: block;
    height: 0;
    overflow: hidden;
}


.navbar h3 a {
    color: gold !important;
    font-size: 1.7rem;
    letter-spacing: 2px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-shadow: 0 0 16px #ffd700, 0 0 32px #ffd70088;
    animation: glow 2s ease-in-out infinite alternate;
    user-select: none;
    text-decoration: none;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 8px #ffd70088, 0 0 16px #ffd70044;
    }
    100% {
        text-shadow: 0 0 24px #ffd700, 0 0 48px #ffd70088;
    }
}

.navbar nav {
    display: flex;
    gap: 2.5rem;
}

.navbar-option {
    text-decoration: none;
    color: #f3f3f3;
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
}

.navbar-option::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, gold 0%, #ffd700 100%);
    transition: width 0.3s;
    margin: 0 auto;
    border-radius: 2px;
}

.navbar-option:hover {
    color: gold;
}

.navbar-option:hover::after {
    width: 100%;
}

.mainbar {
    padding-top: 5rem;
    padding-bottom: 3rem;
}


/* ABOUT SECTION */

.about {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 4rem;
    padding: 8rem 4rem 4rem 4rem;
    min-height: 100vh;
    scroll-snap-align: start;
    line-height: 2;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    left: -10vw;
    top: 10vh;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, gold 0%, transparent 70%);
    opacity: 0.04;
    z-index: 0;
    pointer-events: none;
}

.about-text {
    max-width: 54rem;
    flex: 1;
    text-align: left;
    font-size: 1rem;
    line-height: 2;
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
    transition: opacity 0.5s ease;
    z-index: 1;
    background: rgba(30, 30, 30, 0.35);
    border-radius: 1.2rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(255, 215, 0, 0.08);
    backdrop-filter: blur(2px);
    
}

.about-text.animated {
    animation: fadeInUp 1.5s ease forwards;
    opacity: 1;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-icons {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.3rem;
    margin-bottom: 0.3rem;
    justify-content: left;
    align-items: center;
    flex-wrap: wrap;
    position: static;
    opacity:0.7;
}

.icon-small {
    width: 28px;
    height: 28px;
    vertical-align: middle;
    filter: none;
    transition: transform 0.2s;
}

.social-icons a:hover .icon-small {
    
    transform: scale(1.15);
    /* opacity:1; */
}
.social-icons:hover{
    opacity:1;
}

.about-image {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image img {
    max-width: clamp(10rem, 25vw, 18rem);
    border-radius: 50%;
    border: 3px solid gold;
    box-shadow: none;
    background: #18181f;
    filter: grayscale(10%) brightness(1.1);
    transition: filter 0.3s, box-shadow 0.3s;
}

.about-image img:hover {
    filter: grayscale(0%) brightness(1.15);
    box-shadow: 0 0 12px #b6a75355, 0 0 8px rgb(132, 126, 88);
}

/* About Modal Styles */
.about-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(24, 24, 31, 0.85);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    max-height: 100vh;  
        /* Prevent overflow */
    overflow-y: auto; 
    padding: 2.5vh 0;
}

.about-modal.active {
    display: flex;
}

.about-modal-content {
    background: #232323;
    color: #fff;
    padding: 2rem 1.5rem; /* More space inside the card */
    border-radius: 1.2rem;
    max-width: 600px;
    width: 92vw;
    box-shadow: 0 12px 48px #000b, 0 2px 24px #222b;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    animation: fadeInModal 0.4s;
    font-size: 0.98rem;
    line-height: 1.7;
    letter-spacing: 0.01em;
    text-align: left;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    margin: auto; /* Center with breathing space */
}

.about-modal-content h2 {
    font-size: 2.1rem;
    margin-bottom: 1.2rem;
    color: #f8f8fa;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.about-modal-content p {
    color: #f3f3f3;
    font-size: 1.13rem;
    margin-bottom: 1.1rem;
    font-family: 'Lora', serif;
    text-shadow: 0 1px 4px #18181f44;
}

.about-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #ef0d0d;
    font-size: 2rem;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.2s;
}

.about-modal-close:hover {
    color: #fff;
}

.read-more-btn {
    margin-top: 1.2rem;
    background: linear-gradient(90deg, #111 0%, #232323 100%);
    color: #fff;
    border: 2px solid #232323;
    border-radius: 0.7rem;
    padding: 0.8rem 1.7rem;
    font-size: 1.08rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 24px rgba(0,0,0,0.28), 0 1.5px 8px #00000033;
    letter-spacing: 1px;
    transition: 
        background 0.3s, 
        color 0.3s, 
        box-shadow 0.3s, 
        border 0.3s, 
        transform 0.2s;
    outline: none;
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    left: 0; top: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, #fff2 0%, #23232300 100%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.read-more-btn:hover, .read-more-btn:focus {
    background: linear-gradient(90deg, #232323 0%, #111 100%);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 24px #222a, 0 2px 8px #23232388;
    transform: translateY(-2px) scale(1.04);
}

.read-more-btn:hover::before, .read-more-btn:focus::before {
    opacity: 0.10;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


/* MENU SECTION */

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: fixed;
    top: 1.2rem;
    right: 2rem;
    z-index: 2100;
}

.menu-toggle div {
    width: 25px;
    height: 3px;
    background-color: gold;
    border-radius: 2px;
}

.highlight {
    color: gold;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-shadow: none;
}


/* PROJECT CARDS */

.projects {
    padding: 8rem 2rem 4rem 2rem;
    text-align: center;
    min-height: 100vh;
    scroll-snap-align: start;
    position: relative;
    /* background: linear-gradient(120deg, #18181f 0%, #232323 100%); */
    /* box-shadow: 0 0 80px 0 #222 inset; */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    overflow-x: unset;
    margin-top: 5rem;
}

.projects h3 {
    font-size: 2.2rem;
    color: rgb(250, 249, 248);
    letter-spacing: 2px;
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    text-shadow: none;
    width: 100%;
    text-align: center;
}

.projects-cards-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2.5rem;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2rem 2vw 2rem 2vw;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    box-sizing: border-box;
}

.projects-cards-row::-webkit-scrollbar {
    height: 8px;
    background: #232323;
}

.projects-cards-row::-webkit-scrollbar-thumb {
    background: #ffd70088;
    border-radius: 4px;
}

.cards-item {
    min-width: 240px;
    max-width: 260px;
    flex: 0 0 320px;
    height: 360px;
    background: rgba(30, 30, 30, 0.92);
    border-radius: 1.2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1.5px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    margin: 0 0 0 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    border: none;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(2px);
    padding: 0;
    box-sizing: border-box;
}

.cards-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem;
    z-index: 1;
    transition: filter 0.3s, opacity 0.3s;
    display: block;
}

.cards-item .card-desc {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 24, 31, 0.97);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
    padding: 1rem;
    border-radius: 1.2rem;
    text-align: center;
    z-index: 2;
    font-size: 1.1rem;
    line-height: 1.5;
    text-shadow: 0 2px 8px #18181f, 0 0 2px #000;
    box-sizing: border-box;
    overflow: auto;
    overflow-wrap: break-word;
}

.cards-item:hover img {
    filter: blur(2px) brightness(0.7);
    opacity: 0.5;
}

.cards-item:hover .card-desc,
.cards-item:focus-within .card-desc {
    opacity: 1;
}

.cards-item .card-desc h4 {
    display: block;
    color: rgb(121, 212, 252);
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: none;
}

.cards-item .card-desc p {
    display: block;
    color: #fcfcfb;
    font-size: 1rem;
    font-family: 'Lora', serif;
    margin-bottom: 0.5rem;
    min-height: 60px;
}

.cards-item .card-desc strong {
    color: gold;
    font-weight: 600;
}


.carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    animation: scroll-left 30s linear infinite;
   
}

.carousel-track:hover,
.carousel-track:has(.cards-item:hover) {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


.cards-item {
    min-width: 300px;
    flex: 0 0 auto;
}


/* TECH SECTION */

.tech-section {
    margin: 3rem auto 0 auto;
    max-width: 1100px;
    text-align: center;
}

.tech-intro {
    color: #eaeaea;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Lora', serif;
}

.tech-filters {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tech-filter {
    background: none;
    border: none;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    padding: 0.7rem 2.5rem;
    border-radius: 0.3rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 1px;
}

.tech-filter.active,
.tech-filter:hover {
    background: orange;
    color: #fff;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.2rem 2.2rem;
}

.tech-hex {
    width: 125px;
    height: 145px;
    background: #23273a;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    opacity: 1;
}

.tech-hex img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    filter: grayscale(0.3) brightness(0.95);
    transition: filter 0.2s, transform 1s;
}

.tech-hex span {
    color: #eaeaea;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    margin-top: 0.2rem;
    letter-spacing: 1px;
}

.tech-hex:hover {
    background: linear-gradient(135deg, #3fa9f5 0%, #a259f7 100%);
    box-shadow: 0 0 24px #3fa9f588;
}



.tech-hex:hover img {
    filter: none;
    transform: scale(1.15) rotate(-360deg);
}

.tech-hex:hover span {
    color: #fff;
    font-weight: bold;
}


/* MESSAGE SECTION */
.message {
    padding: 8rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-height: 100vh;
    scroll-snap-align: start;
    /* background: linear-gradient(120deg, #232323 0%, #18181f 100%);
    box-shadow: 0 0 80px 0 #222 inset; */
}

.message h3 {
    color: rgb(250, 250, 249);
    font-size: 2rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-shadow: none;
}

.message form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    max-width: 28rem;
    background: rgba(30, 30, 30, 0.55);
    border-radius: 1.2rem;
    padding: 2rem 2.5rem;
    box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(255, 215, 0, 0.08);
    backdrop-filter: blur(2px);
}

.message input,
.message textarea {
    padding: 1rem;
    border-radius: 0.5rem;
    border: none;
    background-color: #232323;
    color: #fff;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 1px 8px #222;
    outline: none;
    transition: box-shadow 0.3s, border 0.3s;
}

.message input:focus,
.message textarea:focus {
    box-shadow: 0 0 8px #ffd70055;
    border: 1.5px solid gold;
}

.message button {
    background: linear-gradient(90deg, gold 0%, #ffd700 100%);
    border: none;
    padding: 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: #232323;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.message button:hover {
    background: linear-gradient(90deg, #ffd700 0%, gold 100%);
    color: #18181f;
    box-shadow: 0 0 8px #ffd70055;
}


/* CONTACT */


.contact {
    padding: 8rem 2rem;
    text-align: center;
    min-height: 80vh;
    scroll-snap-align: start;
    /* background: linear-gradient(120deg, #18181f 0%, #232323 100%);
    box-shadow: 0 0 80px 0 #222 inset; */
}

.contact h3 {
    font-size: 2rem;
    color: rgb(255, 255, 254);
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-shadow: none;
}

.contact-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.contact-items-card {
    background: rgba(30, 30, 30, 0.85);
    padding: 1.2rem 2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: rgb(255, 255, 255);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    font-size: 1.08rem;
    font-family: 'Montserrat', sans-serif;
    box-shadow: none;
    border: 1.5px solid rgba(255, 215, 0, 0.08);
}

.contact-items-card:hover {
    background: rgb(244, 220, 84);
    color: #232323;
    box-shadow: 0 0 8px #ffd70055;
}

.contact-items-card img {
    height: 1.5rem;
    filter: none;
}

.footer {
    padding: 3rem 2rem;
    text-align: center;
    font-size: 1rem;
    color: gold;
    border-top: 1px solid #333;
    background: rgba(30, 30, 30, 0.85);
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    box-shadow: none;
}


/* sidebar */

.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    width: 200px;
    background: rgba(30, 30, 30, 0.98);
    display: flex;
    flex-direction: column;
    padding: 4rem 1rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    z-index: 1050;
    box-shadow: none;
    border-left: 1.5px solid #000;
}

.sidebar.open {
    right: 0;
}

.sidebar a {
    color: rgb(252, 252, 252);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.sidebar a:hover {
    color: gold;
    text-shadow: none;
}

a {
    text-decoration: none;
}


/* FLASH MESSAGES */

.flash-message {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    min-width: 250px;
    max-width: 90vw;
    z-index: 2000;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 1rem 2.5rem 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0.98;
    animation: fadeInFlash 0.4s;
}



.flash-message.success {
    background: #e6ffe6;
    color: #176c2b;
    border: 1.5px solid #2ecc40;
}

.flash-message.error {
    background: #ffeaea;
    color: #a80000;
    border: 1.5px solid #ff4d4d;
}

.flash-message .close-btn {
    background: none;
    border: none;
    font-size: 1.3rem;
    color: inherit;
    cursor: pointer;
    margin-left: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.flash-message .close-btn:hover {
    opacity: 1;
}

@keyframes fadeInFlash {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 0.98;
        transform: translateX(-50%) translateY(0);
    }
}


/* MEDIA QUERIES */

@media (max-width: 1100px) {
    .projects-cards-row {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        align-items: center;
    }
    .cards-item {
        min-width: 220px;
        max-width: 220px;
        width: 220px;
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        flex: 0 0 220px;
        margin: 0;
        align-items: center;
    }
    .card-desc {
        font-size: 1rem;
        padding: 1rem 0.5rem;
    }
    .navbar nav {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .social-icons {
        gap: 0.4rem;
        margin-top: 0.2rem;
        margin-bottom: 0.2rem;
        /* justify-content: center; */
    }
      .about-modal-content {
        padding: 1.5rem 1rem;
        max-width: 96vw;
        width: 96vw;
        font-size: 0.96rem;
        margin:1rem;
    }
    .about-modal-close {
        top: 0.7rem;
        right: 0.8rem;
        font-size: 2rem;
    }
}

@media (max-width: 900px) {
    .projects-cards-row {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 1.5rem;
        align-items: center;
        padding: 1rem 0;
        overflow-x: unset;
    }
    .cards-item {
        min-width: 200px;
        max-width: 200px;
        width: 200px;
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        flex: 0 0 200px;
        margin: 0;
        align-items: center;
    }
    .card-desc {
        font-size: 1rem;
        padding: 1rem 0.5rem;
    }
    .social-icons {
        gap: 0.4rem;
        margin-top: 0.2rem;
        margin-bottom: 0.2rem;
        justify-content: center;
    }
   .about-modal-content {
        padding: 1.2rem 0.7rem;
        max-width: 98vw;
        width: 98vw;
        font-size: 0.94rem;
        margin:1rem;
    }
    .about-modal-close {
        top: 0.6rem;
        right: 0.6rem;
        font-size: 2rem;
    }
     .about {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 6rem 1rem 2rem 1rem;
    }
    .about-image {
        order: -1; /* Move image above text */
        margin-bottom: 1.2rem;
        left: 0 !important;
        top: 0 !important;
        position: static !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .about-image img {
        left: 0 !important;
        top: 0 !important;
        position: static !important;
        margin: 0 auto;
        max-width: 12rem;
    }
    .about-text {
        width: 100%;
        max-width: 100%;
        padding: 1.2rem 0.7rem;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .about {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 6rem 2rem;
    }
    .about-text {
        text-align: center;
        padding: 1.5rem 1rem;
    }
    .about-image img {
        max-width: 12rem;
        left: 0;
        top: 0;
    }
    .projects-cards-row {
        gap: 1.2rem;
        padding: 0.5rem 0;
    }
    .cards-item {
        min-width: 170px;
        max-width: 170px;
        width: 170px;
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        flex: 0 0 170px;
    }
    .card-desc {
        font-size: 0.95rem;
        padding: 0.7rem 0.2rem;
    }
    .social-icons {
        gap: 0.4rem;
        margin-top: 0.2rem;
        margin-bottom: 0.2rem;
        justify-content: center;
    }
    .about-modal-content {
        padding:1rem 1rem 1rem 1rem;
        max-width: 99vw;
        width: 99vw;
        font-size: 0.92rem;
        margin:1rem;
    }
    .about-modal-close {
        top: 0.5rem;
        right: 0.5rem;
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .projects-cards-row {
        gap: 1rem;
        padding: 0.5rem 0;
    }
    .cards-item {
        min-width: 140px;
        max-width: 170px;
        width: 170px;
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        flex: 0 0 140px;
    }
    .about-text {
       text-align: center;
        padding: 1.5rem 1rem;
    }
    .card-desc {
        font-size: 0.95rem;
        padding: 0.7rem 0.2rem;
    }
    .social-icons {
        gap: 0.3rem;
        margin-top: 0.1rem;
        margin-bottom: 0.1rem;
        justify-content: center;
    }
   .about-modal {
        padding: 1.5vh 0;
    }
    .about-modal-content {
        padding:1rem 1rem 1rem 1rem;
        max-width: 100vw;
        width: 100vw;
        font-size: 0.89rem;
        margin:1rem;
    }
    .about-modal-close {
        top: 0.3rem;
        right: 0.3rem;
        font-size: 2.1rem;
    }
}

@media screen and (max-width: 480px) {
    .navbar h3 {
        font-size: 1.2rem;
    }
    .navbar-option {
        font-size: 0.9rem;
    }
    .about-image img {
        max-width: 9rem;
    }
    .projects-cards-row {
        gap: 0.7rem;
        padding: 0.3rem 0;
    }
    .cards-item {
        min-width: 110px;
        max-width: 170px;
        width: 170px;
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        flex: 0 0 110px;
    }
    .card-desc {
        font-size: 0.9rem;
        padding: 0.5rem 0.1rem;
    }
    .social-icons {
        gap: 0.3rem;
        margin-top: 0.1rem;
        margin-bottom: 0.1rem;
        justify-content: left;
    }
     .about-modal {
        padding: 1vh 0;
    }
    .about-modal-content {
        padding:1rem 1rem 1rem 1rem;
        margin: 1rem;
        max-width: 100vw;
        width: 100vw;
        font-size: 0.87rem;
    }
    .about-modal-close {
        top: 0.1rem;
        right: 0.2rem;
        font-size: 2.1rem;
    }
     .about-text {
       text-align: left;
        padding: 1.5rem 1rem;
    }
}
