:root {

    --cyber-blue: #3A98FF;

}

html {
    scroll-snap-type: y mandatory;
}

section {
    min-height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    position: relative;
}

*{
    box-sizing: border-box;
}

/* --- BODY & ANIMATION --- */

@keyframes gradient {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

body {
    background: linear-gradient(-45deg, #1e1e1e, #2c2c2c, #1a1a1a, #000);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    margin: 0;
    background-image:
            radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
            linear-gradient(-45deg, #1e1e1e, #2c2c2c, #1a1a1a, #000);
    background-size: 20px 20px, 400% 400%;
}

/* --- NAVBAR --- */

.navbar {
    background-color: #111;
    box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
    margin: 0;
    padding: 10px 2rem;

    /* 1. Fix position */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    /* 2. Flex settings */
    display: flex;
    align-items: center;
    /* REMOVED 'justify-content: space-between' to stop centering the github logo */
}

.logo-placeholder {
    display: none;
}

.logo {
    width: auto;
    height: 85px;
    zoom: 90%;
    margin-top: 5px;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 20;
}

.logo:hover {
    filter: drop-shadow(0 0 8px rgba(58, 152, 255, 0.5));
    transform: scale(1.1);
}

/* 3. CENTERED TITLE */
.Welcome {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    font-size: 30px;
    color: white;
    opacity: 65%;
    white-space: nowrap;

    pointer-events: none; /* Allows clicking through text */
    z-index: 10;
}

.Welcome .fas {
    color: var(--cyber-blue);
    margin-right: 10px;
}

/* 4. THE MAGIC FIX FOR ICONS */
.githubLogo {
    font-size: 35px;
    position: relative;
    z-index: 20;

    /* This "Spring" pushes the GitHub logo (and LinkedIn) to the far right */
    margin-left: auto;
    margin-right: 20px; /* Space between GitHub and LinkedIn */
}

.linkedinLogo {
    font-size: 35px;
    position: relative;
    z-index: 20;
    margin-right: 0;
}

.githubLogo a,
.linkedinLogo a {
    color: white;
    opacity: 65%;
    transition: all 0.3s ease;
    display: inline-block;
}

.githubLogo a:hover,
.linkedinLogo a:hover {
    color: var(--cyber-blue);
    transform: scale(1.2);
}

/* --- CONTENT POSITIONING & HERO --- */

#content-wrap {
    margin-top: 0;
}

.hero{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 130px);
    color: white;
    font-size: large;
    font-weight: bold;
    opacity: 80%;
    animation: fadeIn 1.5s ease-in forwards;
    padding-top: 130px;
}

.hero h1 {
    text-shadow: 0 0 15px rgba(58, 152, 255, 0.25);
}

.typing {
    font-size: 1.3rem;
    color: var(--cyber-blue);
    border-right: 2px solid var(--cyber-blue);
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    animation: typing 4s steps(40, end) forwards, blink 1s step-end infinite alternate;
    text-shadow: 0 0 8px rgba(58, 152, 255, 0.5);
}

.scroll-down-mouse {
    position: absolute;
    bottom: -55px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 45px;
    border: 2px solid var(--cyber-blue);
    border-radius: 20px;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-down-mouse:hover {
    opacity: 1;
}

.scroll-down-mouse span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--cyber-blue);
    border-radius: 4px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {

    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

@keyframes typing {
    from { width: 0; }
    to { width: 28ch; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

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

.githubLogo,
.linkedinLogo{
    font-size: 35px;
    margin-right: 15px;
}

.githubLogo a,
.linkedinLogo a {
    color: white;
    opacity: 65%;
    transition: all 0.3s ease;
    display: inline-block;
}

.githubLogo a:hover,
.linkedinLogo a:hover{
    color: var(--cyber-blue);
    transform: scale(1.2);
}

.about-section{
    max-width: 100%;
}

.about-text{
    max-width: 600px;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.inAboutName{
    color: var(--cyber-blue);
}

.about-photo{
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.9));
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out;
}

.inAboutKeywords{
    color: var(--cyber-blue);
}

.inAboutQualities{
    color: var(--cyber-blue);
}

.visible .about-text,
.visible .about-photo {
    opacity: 1;
    transform: translateX(0);
}

.scroll-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 100;
}

.scroll-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1000;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 2px solid #b3b3b3;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background-color: #b3b3b3;
}

.dot.active {
    background-color: var(--cyber-blue);
    border-color: var(--cyber-blue);
    transform: scale(1.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.projects-section {
    background-color: #0d0d0d;
    padding-top: 150px;
    overflow-y: auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 500px;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyber-blue);
    box-shadow: 0 5px 15px rgba(58, 152, 255, 0.15);
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-bottom: 1px solid #333;
    background-color: #000;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

/* 3. The Text Area */

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    color: white;
    opacity:65%;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: #b3b3b3;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.project-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
}

.live-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid currentColor;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.live-btn:hover {
    color: var(--cyber-blue) !important;
    opacity: 1;
    box-shadow: 0 0 15px rgba(58, 152, 255, 0.4);
    background-color: transparent;
}

.logo:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(58, 152, 255, 0.8));
}

.repo-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.65) !important;
    border: 1px solid currentColor;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.repo-btn:hover {
    color: var(--cyber-blue) !important;
    opacity: 1;
    box-shadow: 0 0 15px rgba(58, 152, 255, 0.4);
    background-color: transparent;
}

.techStack{
    color: var(--cyber-blue);
}

/* --- SKILLS SECTION --- */

.skills-section {
    background-color: #000;
    padding-top: 150px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-pill {

    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    color: #e0e0e0;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-pill i {
    margin-right: 8px;
    color: var(--cyber-blue);
}

.skill-pill:hover {
    background: var(--cyber-blue);
    color: #000;
    border-color: var(--cyber-blue);
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(58, 152, 255, 0.4);
}

.skill-pill:hover i {
    color: #000;
}

.learning-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 12px;
}

.progress {
    background-color: #222;
}

.contact-section {
    background: linear-gradient(0deg, #0a0a0a 0%, #1a1a1a 100%);
    min-height: 70vh !important;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.social-btn:hover {
    background: var(--cyber-blue);
    color: #000;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 0 20px rgba(58, 152, 255, 0.5);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-card {
        min-height: auto;
    }
    .card-image {
        height: 180px;
    }
    .card-content {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 100px 15px 50px 15px;
    }
    .about-photo img {
        max-width: 70%;
        margin-top: 30px;
    }
    .about-text {
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0 10px !important;
    }
    .logo {
        height: 60px;
    }
    .Welcome {
        display: inline-block !important;
        font-size: 18px;
        margin: 0 10px;
        opacity: 65%;
    }
    .githubLogo,
    .linkedinLogo {
        font-size: 24px;
        margin-right: 5px;
    }
}

@media (max-width: 992px) {
    .scroll-nav {
        display: none;
    }
}

@media (max-width: 900px) {
    .navbar .githubLogo,
    .navbar .linkedinLogo {
        display: none;
    }
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 2rem;
    flex-wrap: wrap;
    align-content: center;
}


.navbar .brand,
.navbar .logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}


.navbar nav,
.navbar .nav-links,
.navbar ul {
    display: flex;
    gap: 1rem;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}


.navbar nav a,
.navbar .nav-links a,
.navbar ul a {
    padding: 8px 12px;
    display: inline-block;
    text-decoration: none;
    color: inherit;
}


.navbar .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 6px;
}


.navbar .githubLogo,
.navbar .linkedinLogo {
    font-size: 28px;
    margin-right: 12px;
}

@media (max-width: 992px) {
    .navbar {
        padding: 8px 1rem;
    }

    .navbar .githubLogo,
    .navbar .linkedinLogo {
        font-size: 26px;
        margin-right: 8px;
    }

    .navbar nav,
    .navbar .nav-links,
    .navbar ul {
        gap: 0.6rem;
    }
}


@media (max-width: 768px) {
    .navbar {
        padding: 8px 0.75rem;
    }

    .logo {
        height: 60px !important;
    }

    .Welcome {
        display: inline-block !important;
        font-size: 18px;
        margin: 0 10px;
        opacity: 65%;
    }

    .navbar .githubLogo,
    .navbar .linkedinLogo {
        display: none;
    }

    .navbar nav,
    .navbar .nav-links,
    .navbar ul {
        display: none;
    }

    .navbar .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}


@media (max-width: 576px) {
    .navbar {
        padding: 6px 0.5rem;
    }

    .logo {
        height: 50px !important;
    }

    .navbar .githubLogo,
    .navbar .linkedinLogo {
        display: none;
    }
}

/* --- FIX MOBILE SCROLLING --- */
@media (max-width: 900px) {

    /* 1. Disable the "Sticky" Scroll Snap */
    html {
        scroll-snap-type: none !important;
        scroll-behavior: auto !important; /* Uses native touch momentum */
        overflow-x: hidden; /* Prevents side-to-side wobble */
    }

    /* 2. Release Section Heights */
    /* This stops the phone from trying to force content into exactly 1 screen height */
    section {
        height: auto !important;
        min-height: auto !important;
        scroll-snap-align: none !important;

        /* Add breathing room since we aren't vertically centering anymore */
        padding-top: 120px;
        padding-bottom: 60px;
    }

    /* 3. Fix the Hero height */
    /* We want the first screen to still look full, but allow scrolling past it easily */
    .hero {
        height: auto;
        padding-top: 150px;
        padding-left: 25px;
        padding-right: 25px;
        padding-bottom: 50px;
    }

    .shieldIcon{
        display: none !important;
    }
}


