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

/* CSS Variables */
:root {
    --bg-color: #081b29;
    --second-bg-color: #112e42;
    --text-color: #ededed;
    --main-color: #FFA500;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
}

/* Accessibility - Visually Hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Header Design */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background 0.3s ease;
}

.header.sticky {
    background: var(--bg-color);
}

.logo {
    position: relative;
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
}

#menu-icon {
    position: relative;
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none;
    background: transparent;
    border: none;
}

.navbar {
    position: relative;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: color 0.3s ease;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

span {
    color: var(--main-color);
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    padding: 12rem 9% 0 9%;
    background: url('/images/Venuhome.jpg') no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
}

.home-content {
    max-width: 60rem;
    z-index: 99;
    padding-top: 2rem;
}

.home-content h1 {
    position: relative;
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content .text-animate h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 0.7px var(--main-color);
    margin-bottom: 2rem;
}

.home-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
    text-align: justify;
    text-justify: inter-word;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.6;
    letter-spacing: 0.02em;
    hyphens: none;
}

.btn-box {
    position: relative;
    display: flex;
    justify-content: space-between;  /* ✅ Fixed */
    width: 100%;
    max-width: 34.5rem;
    height: auto;
    margin-top: 6rem;
    margin-bottom: 2rem;
    z-index: 10;
    gap: 2rem;
}

.btn-box .btn-group {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.btn-box .btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 5rem;
    background: var(--main-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 0.8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    color: var(--bg-color);
    z-index: 1;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-box .btn:hover {
    color: var(--main-color);
    transform: translateY(-2px);
}

.btn-box .btn:nth-child(2) {
    background: transparent;
    color: var(--main-color);
}

.btn-box .btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn-box .btn:nth-child(2)::before {
    background: var(--main-color);
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: width 0.5s ease;
}

.btn-box .btn:hover::before {
    width: 100%;
}

/* Social Media Icons */
.home-sci {
    position: absolute;
    bottom: 8rem;
    width: 170px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0.2rem solid var(--main-color);
    border-radius: 50%;
    font-size: 15px;
    color: var(--main-color);
    z-index: 1;
    overflow: hidden;
    transition: color 0.5s ease;
}

.home-sci a:hover {
    color: var(--bg-color);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--main-color);
    z-index: -1;
    transition: width 0.5s ease;
}

.home-sci a:hover::before {
    width: 100%;
}

.home-imgHover {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: transparent;
    transition: opacity 0.3s ease;
}

.home-imgHover:hover {
    background: var(--bg-color);
    opacity: 0.8;
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2rem;
    background: var(--second-bg-color);
    padding-bottom: 6rem;
}

.heading {
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.about-img {
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    border: 0.2rem solid var(--main-color);
}

.about-img .circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 0.2rem solid var(--second-bg-color);
    border-bottom: 0.2rem solid var(--second-bg-color);
    border-left: 0.2rem solid var(--main-color);
    border-right: 0.2rem solid var(--main-color);
    animation: aboutSpinner 8s linear infinite;
}

.about-content {
    text-align: center;
}

.about-content h3 {
    font-size: 2.6rem;
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    text-align: justify;
    text-justify: inter-word;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.6;
    letter-spacing: 0.02em;
    hyphens: none;
}

/* Education Section */
.education {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: auto;
    padding-bottom: 5rem;
}

.education .education-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.education-row .education-column {
    flex: 1 1 40rem;
}

.education-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem 2rem;
}

.education-column .education-box {
    border-left: 0.2rem solid var(--main-color);
}

.education-box .education-content {
    position: relative;
    padding-left: 2rem;
}

.education-box .education-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -1.1rem;
    width: 2rem;
    height: 2rem;
    background: var(--main-color);
    border-radius: 50%;
}

.education-content .content {
    position: relative;
    padding: 1.5rem;
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    margin-bottom: 2rem;
    overflow: hidden;
}

.education-content .content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: width 0.5s ease;
}

.education-content .content:hover::before {
    width: 100%;
}

.education-content .content .year {
    font-size: 1.5rem;
    color: var(--main-color);
    padding-bottom: 0.5rem;
}

.education-content .content .year i {
    padding-right: 0.5rem;
}

.education-content .content h4 {
    font-size: 2rem;
}

.education-content .content p {
    font-size: 1.6rem;
    padding-top: 0.5rem;
}

/* Skills Section */
.skills {
    min-height: auto;
    padding-bottom: 7rem;
    background: var(--second-bg-color);
}

.skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
}

.skills-column {
    flex: 1 1 40rem;
}

.skills-column .title {
    font-size: 2.5rem;
    margin: 0 0 1.5rem;
}

.skills-box .skills-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skills-item {
    position: relative;
    padding: 1.5rem;
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.skills-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: width 0.5s ease;
}

.skills-item:hover::before {
    width: 100%;
}

.skills-item i {
    font-size: 3rem;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

.skills-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.skills-item h4 {
    font-size: 1.7rem;
    font-weight: 500;
}

/* Contact Section */
.contact {
    min-height: auto;
    padding-bottom: 7rem;
}

.contact form {
    max-width: 70rem;
    margin: 0 auto;
    text-align: center;
}

.contact form .input-box {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box .input-field {
    position: relative;
    width: 49%;
    margin: 0.8rem 0;
}

.contact form .input-box .input-field input,
.contact form .textarea-field textarea {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: 0.6rem;
    border: 0.2rem solid var(--main-color);
}

.contact form .input-box .input-field input::placeholder,
.contact form .textarea-field textarea::placeholder {
    color: var(--text-color);
}

.contact form .textarea-field {
    position: relative;
    margin: 0.8rem 0 2.7rem;
    display: flex;
}

.contact form .textarea-field textarea {
    resize: none;
}

/* Security Check/Math Challenge */
.contact form .input-box.math-challenge-box {
    width: 100%;
    margin: 2rem 0;
}

.contact form .math-challenge-box .input-field {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
}

.contact form .math-challenge-box label {
    display: block;
    color: var(--main-color);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    text-align: center;
}

.contact form .math-challenge-box input {
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    padding: 1.2rem;
    font-size: 1.6rem;
    text-align: center;
}

/* Fixed number input spinner removal */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}

.footer-text p {
    font-size: 1.6rem;
}

.footer-iconTop a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    background: var(--main-color);
    border: 0.2rem solid var(--main-color);
    border-radius: 0.6rem;
    z-index: 1;
    overflow: hidden;
}

.footer-iconTop a:hover {
    color: var(--main-color);
}

.footer-iconTop a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--second-bg-color);
    z-index: -1;
    transition: width 0.5s ease;
}

.footer-iconTop a:hover::before {
    width: 100%;
}

.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--bg-color);
    transition: color 0.5s ease;
}

.footer-iconTop a:hover i {
    color: var(--main-color);
}

/* Center buttons */
/* Center buttons */
.about-content .btn-box.btns,
.contact form .btn-box.btns {
    display: flex;
    justify-content: center;
    align-items: center;  /* Add this */
    width: 100%;
    max-width: 100%;  /* Add this */
}

.about-content .btn-box.btns .btn,
.contact form .btn-box.btns .btn {
    width: auto;  /* Change from fixed width */
    min-width: 15rem;  /* Add this */
    padding: 1.2rem 3rem;  /* Add this */
}

.about-content .btn-box.btns .btn {
    margin: 0 10px;
}

.contact form .btn-box.btns .btn {
    margin: 0 auto;
    display: block;
}

/* Animations */
@keyframes aboutSpinner {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes professionAnimation {
    0% {
        transform: scale(1) rotate(0deg);
        color: transparent;
        -webkit-text-stroke: 0.7px var(--main-color);
    }
    50% {
        transform: scale(1.05) rotate(2deg);
        color: var(--main-color);
        -webkit-text-stroke: 0.7px transparent;
    }
    100% {
        transform: scale(1) rotate(-2deg);
        color: transparent;
        -webkit-text-stroke: 0.7px var(--main-color);
    }
}

.text-animate {
    position: relative;
    width: 100%;
}

.text-animate h2 {
    position: relative;
    display: inline-block;
    font-size: 3.2rem;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 0.7px var(--main-color);
    animation: professionAnimation 2s ease-in-out infinite alternate;
    transform-origin: center;
}

/* Selection color */
::-moz-selection {
    color: var(--second-bg-color);
    background: var(--main-color);
}

::selection {
    color: var(--second-bg-color);
    background: var(--main-color);
}

/* Media Queries */
@media (max-width: 1200px) {
    html {
        font-size: 55%;
    }
}

@media (max-width: 991px) {
    .header {
        padding: 2rem 4%;
    }

    section {
        padding: 10rem 4% 2rem;
    }

    .home {
        padding: 0 4%;
    }

    .footer {
        padding: 2rem 4%;
    }
}

@media (max-width: 850px) {
    .home-imgHover {
        width: 55%;
    }
}

@media (max-width: 768px) {
    .header {
        background: var(--bg-color);
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: var(--main-color);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
        z-index: 1;
        transition: left 0.25s ease;
    }

    .navbar.active {
        left: 0;
    }

    .navbar .active-nav {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--bg-color);
        border-top: 0.1rem solid rgba(0, 0, 0, 0.2);
        z-index: -1;
        transition: left 0.25s ease;
    }

    .navbar.active .active-nav {
        left: 0;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        transform: translateX(-20rem);
        transition: transform 0.25s ease;
    }

    .navbar.active a {
        transform: translateX(0);
    }

    .home {
        background: none !important;
        padding: 14rem 4% 2rem 4%;
    }

    .skills-box .skills-content {
        grid-template-columns: 1fr;
    }

    .text-animate h2 {
        font-size: 2.8rem;
    }

    /* FIXED MOBILE BUTTONS */
    .btn-box {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        height: auto;
        gap: 1.5rem;
        margin-top: 4rem;
    }

    .btn-box .btn-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1.5rem;
    }

    .btn-box .btn {
        width: 100%;
        max-width: 25rem;
        height: 5.5rem;
        font-size: 1.8rem;
        margin: 0;
    }

    .home-sci {
        position: relative;
        bottom: auto;
        margin-top: 4rem;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        max-width: 20rem;
    }

    .contact form .math-challenge-box {
        margin: 2rem 0 2.5rem 0;
    }

    .contact form .math-challenge-box label {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    .contact form .math-challenge-box input {
        max-width: 15rem;
        padding: 1rem;
        font-size: 1.5rem;
    }

    .contact form .btn-box.btns {
        margin-top: 2rem;
    }
}

@media (max-width: 520px) {
    html {
        font-size: 50%;
    }

    .home-content h1 {
        display: flex;
        flex-direction: column;
        font-size: 4.5rem;
        margin-top: 1rem;
    }

    .home-sci {
        margin-top: 3rem;
        gap: 1.5rem;
    }

    .home-sci a {
        width: 38px;
        height: 38px;
    }

    .text-animate h2 {
        font-size: 2.5rem;
    }

    .btn-box {
        margin-top: 3rem;
        gap: 1rem;
    }

    .btn-box .btn {
        width: 100%;
        max-width: 28rem;
        height: 5rem;
        padding: 1.2rem;
        font-size: 1.7rem;
    }

    .contact form .math-challenge-box {
        margin: 1.5rem 0 2rem 0;
    }

    .contact form .math-challenge-box label {
        font-size: 1.4rem;
    }

    .contact form .math-challenge-box input {
        max-width: 12rem;
        padding: 0.8rem;
        font-size: 1.4rem;
    }

    .contact form .btn-box.btns {
        margin-top: 2.5rem;
    }
}

@media (max-width: 480px) {
    .home {
        padding: 12rem 4% 2rem 4%;
    }

    .btn-box .btn {
        max-width: 26rem;
        height: 4.8rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 462px) {
    .home-content h1 {
        font-size: 5.2rem;
    }

    .education {
        padding: 10rem 4% 5rem 5%;
    }

    .contact form .input-box .input-field {
        width: 100%;
    }

    .footer {
        flex-direction: column-reverse;
    }

    .footer p {
        margin-top: 2rem;
        text-align: center;
    }
}

@media (max-width: 380px) {
    .home {
        justify-content: center;
        padding: 11rem 4% 2rem 4%;
    }

    .home-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .home-content h1 {
        font-size: 4rem;
    }

    .btn-box .btn {
        width: 100%;
        max-width: 24rem;
        height: 4.5rem;
        font-size: 1.5rem;
    }
}

@media (max-width: 371px) {
    .home-content h1 {
        font-size: 4.8rem;
    }
}



/* Fix Social Media Buttons Overlapping */
.home-sci {
    position: absolute;
    bottom: 4rem; /* Reduced from 8rem to create more space */
    width: 170px;
    display: flex;
    justify-content: space-between;
    z-index: 5;
}

/* Adjust home content to create more space at bottom */
.home-content {
    max-width: 60rem;
    z-index: 99;
    padding-top: 2rem;
    padding-bottom: 8rem; /* Added padding to push content up */
}

/* Ensure buttons have proper spacing from social icons */
.btn-box {
    position: relative;
    display: flex;
    justify-content: flex-start;
    width: 100%;
    max-width: 34.5rem;
    height: auto;
    margin-top: 4rem; /* Reduced from 6rem to balance spacing */
    margin-bottom: 2rem; /* Added margin at bottom */
    z-index: 10;
    gap: 2rem;
}

/* Mobile adjustments to maintain proper spacing */
@media (max-width: 768px) {
    .home-sci {
        position: relative;
        bottom: auto;
        margin-top: 4rem;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        max-width: 20rem;
    }
    
    .home-content {
        padding-bottom: 4rem; /* Less padding on mobile */
    }
    
    .btn-box {
        margin-top: 3rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 520px) {
    .home-sci {
        margin-top: 3rem;
        gap: 1.5rem;
    }
    
    .btn-box {
        margin-top: 2.5rem;
        margin-bottom: 0.5rem;
    }
}





