:root {
    --primary-color: #6e45e2;
    --secondary-color: #88d3ce;
    --dark-bg: #121212;
    --darker-bg: #0a0a0a;
    --light-text: #f5f5f7;
    --light-text-secondary: #a1a1a6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 30, 30, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 10rem 5% 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* background: white; */
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.name-gradient {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: 1.5rem;
    color: var(--light-text-secondary);
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.primary-btn {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 69, 226, 0.3);
}

.secondary-btn {
    background: transparent;
    color: var(--light-text);
    border: 2px solid var(--light-text);
}

.secondary-btn:hover {
    background: var(--light-text);
    color: var(--dark-bg);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 2px solid white; */
}

#hero-3d-model {

    width: 100%;
    max-width: 500px;
    height: 500px;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--light-text);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--light-text);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        top: 5px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}

/* Sections Common Styles */
section {
    padding: 6rem 5%;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about-content {
    display: flex;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-3d-container {
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

#profile-3d {
    width: 100%;
    height: 100%;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--light-text-secondary);
}

.skills-section {
    margin: 3rem 0;
}

.skills-section h4 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;

}

.skill-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
}

.skill-percent {
    color: var(--secondary-color);
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0;
}
.exp-e{
    text-align: center;
    font-size: 30px;
    margin-bottom: 20px;
}

.experience-timeline {
 display: flex; 
}



.timeline-item {
    display: flex;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
    padding: 10px 50px;
    margin: 30px;
    margin-top: 50px;
    flex-direction: column;
    width: 50%;

}
.exp-sec-ss{
    position:relative;
    top: 0px;
}
.exp-txt{
    width: 100%;
    padding: 0;
    margin: 0;

}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    width: 1px;
    height: calc(100% - 15px);
    background: var(--light-text-secondary);
}

.timeline-date {
    min-width: 180px;
    color: var(--secondary-color);
    font-weight: 600;
}

.timeline-content {
    display: flex;
    margin-top: 20px;
    /* background: wheat; */
    width: 100%;
    flex-direction: column;
    gap: 20px;
}
.exp-txt {
    font-weight: 100;
    color: rgb(143, 141, 141);
    font-family: sans-serif;
    position: relative;
    /* left: -150px; */
}
.ddd{
    display: flex;
    width: 100%;
    /* background: red; */
    justify-content: space-between;

}

.timeline-content h5 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-content p {
    color: var(--light-text-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    perspective: 1000px;
    height: 350px;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.project-card-front {
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 70%;
    position: relative;
}

.project-3d-preview {
    width: 100%;
    height: 100%;
}

.project-info {
    padding: 1.5rem;
    flex: 1;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-tech {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.project-card-back {
    padding: 2rem;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card-back h3 {
    margin-bottom: 1rem;
}

.project-card-back p {
    margin-bottom: 1.5rem;
    color: var(--light-text-secondary);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:first-child {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

.project-link:last-child {
    background: transparent;
    border: 1px solid var(--light-text);
}

.project-link:hover {
    transform: translateY(-3px);
}

/* Contact Section */
.contact-content {
    display: flex;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: var(--light-text-secondary);
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light-text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(110, 69, 226, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(110, 69, 226, 0.3);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    padding: 3rem 5%;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.footer-copyright {
    color: var(--light-text-secondary);
    font-size: 0.9rem;
}

/* 3D Background Element */
#3d-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.2;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 3rem;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .contact-form {
        margin-top: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--darker-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-menu-btn {
        display: block;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
    }

    .timeline-date {
        margin-bottom: 0.5rem;
    }
}

.glass-nav {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Add this to prevent content jump when navbar hides */
body {
    padding-top: 80px;
    /* Should match your navbar height */
}

/* Adjust hero section to account for navbar padding */
.hero {
    padding-top: 0;
    /* Remove the previous padding-top */
    min-height: calc(100vh - 80px);
    /* Adjust for navbar height */
}

#3d-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.08;
    /* Very subtle to not distract */
    pointer-events: none;
}

/* Font Import from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=JetBrains+Mono:wght@400;700&display=swap');

.pitchline {
    /* Modern tech font with excellent readability */
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    /* Responsive sizing */
    line-height: 1.1;


    /* Gradient text effect */
    background: linear-gradient(90deg, #6e45e2 0%, #88d3ce 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    /* Animation */
    animation: fadeInSlideUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(20px);

    /* Layout */
    position: absolute;
    top: 300px;
    width: 100vw;
    /* background: #000; */
    font-size: 60px;
    /* max-width: 900px; */
    /* margin: 0 auto 2rem; */
    text-align: center;
    padding: 0px 100px;
    font-size: 60px;

    /* Optional 3D text effect */
    text-shadow: 0 2px 10px rgba(110, 69, 226, 0.3);

    text-align: center;

    /* For monospace/tech alternative */
    &.monospace {
        font-family: 'JetBrains Mono', monospace;
        font-weight: 700;
        letter-spacing: -0.05em;
    }

}

.pitchline span {
    color: white;
}


/* Animation keyframes */
@keyframes fadeInSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pitch-line {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        line-height: 1.2;
    }
}

.pitchline {
    /* ... your existing styles ... */
    text-shadow:
        0 0 10px rgba(110, 69, 226, 0.3),
        0 0 20px rgba(136, 211, 206, 0.3);

    /* Add transition for hover effect */
    transition: text-shadow 0.3s ease;
}

.pitch-line:hover {
    text-shadow:
        0 0 15px rgba(110, 69, 226, 0.5),
        0 0 30px rgba(136, 211, 206, 0.3);
}

.links {

    position: absolute;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 500px;

}

.linksa {
    display: flex;
    gap: 30px;
    border-radius: 10px;
}

.lnk {
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 30px;
    gap: 60px;
    width: fit-content;
    border-radius: 10px;
    transform: translateY(0px);
    transition: all;
    transition-duration: 0.7s;
}

.lnk a {
    /* background: linear-gradient(120deg, #6e45e2, #240870); */
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));

    padding: 5px 15px;
    border-radius: 10px;
    transition: all;
    transition-duration: 0.7s;
    /* transform: rotatey(160deg); */
    transform: translateY(0px);

}

.lnk:hover {
    /* background: linear-gradient(120deg, #6f45e280, #24087071); */
    transform: translateY(-10px);
    transition: all;
    border-radius: 10px;
    transition-duration: 0.7s;
    /* background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); */
    background: black;
}

.project-image {
    display: flex;
    justify-content: center;
}

.project-image img {
    width: 300px;
    height: 100%;
}

.heros {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* gap: 200px; */
    /* padding: 50px; */
    /* padding: 10rem 5% 5rem; */
    width: 100%;
    /* background: whitesmoke; */
    padding: 0px 50px;
    max-width: 1400px;
    /* background: white; */


}

.hero-contents {
    max-width: 1400px;
    display: flex;
    align-items: center;
    /* gap: 50px; */
    padding: 0;
    margin: 0;
    gap: 250px;
    /* border: 2px solid black; */
    flex-wrap: wrap;
}

.hero-texts {
    flex: 1;
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.hero-texts h1 {
    font-size: 3rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 0px 20px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    width: fit-content;
}


.hero-texts p {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #cbd5e1;
}

.btns {
    padding: 12px 24px;
    background: #38bdf8;
    color: #0f172a;
    font-weight: bold;
    width: fit-content;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btns:hover {
    background: #0ea5e9;
    color: white;
}

.hero-imgs {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-imgs img {
    width: 350px;
    max-width: 100%;
    border-radius: 100%;
    border: 5px solid #38bdf8;
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.6);
}

