:root {
    --bg-color: #050505;
    --card-bg: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --primary-color: #ff8c00;
    --primary-glow: #ff8c00aa;
    --secondary-color: #ffb700;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background: radial-gradient(circle at 50% 0%, #1a0b00 0%, #050505 60%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    overflow: hidden;
}


.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 140, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
}

.dot {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
}

.btn-contact {
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--primary-color);
    color: var(--bg-color) !important;
    box-shadow: 0 0 15px var(--primary-glow);
}


.hero {
    min-height: 100dvh;
    width: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    padding-top: 80px;
    animation: fadeIn 0.5s ease-in-out;
    background: transparent;
    /* Use body background */
}

.hero.active-section {
    display: flex;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary-color);
    margin-left: 2px;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-content h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.hero-content p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

.btn-primary:hover {
    background: #ff9f2e;
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.2);
}


.section {
    height: 100dvh;
    display: none;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    overflow-y: auto;
    animation: fadeIn 0.5s ease-in-out;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
    padding-top: 100px;
}

.section>.container {
    margin: auto 0;
    width: 100%;
    min-height: min-content;
}

.about-text {
    box-shadow: 1px 1px 10px var(--primary-color);
    padding: 2rem;
    border-radius: 1rem;
}



.section::-webkit-scrollbar {
    width: 8px;
}

.section::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.section::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 20px;
    border: 3px solid var(--bg-color);
}

.section.active-section {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    align-self: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}


.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.about-text p {
    margin-bottom: 1rem;
}


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

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid transparent;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
    transform: translateY(-5px);
}

.skill-card h3 {
    margin: 1rem 0;
    color: var(--text-primary);
}

.skill-card p {
    color: var(--text-secondary);
}


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

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.15);
    transform: translateY(-5px);
}

.project-image {
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tags {
    margin: 1rem 0;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tags span {
    background: rgba(255, 140, 0, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.btn-sm {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
    transition: var(--transition);
}

.btn-sm:hover {
    color: var(--primary-color);
}


.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
    font-family: var(--font-main);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
    pointer-events: none;
    background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.1);
}

.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: var(--card-bg);
    padding: 0 5px;
}


.footer {
    background: #050505;
    padding: 2rem 5%;
    border-top: 1px solid rgba(255, 140, 0, 0.1);
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}

.footer-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.footer-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
    line-height: 1.4;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-glow);
}


.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid var(--primary-color);
        padding: 2rem 0;
    }

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

    .nav-links li {
        margin: 16px 0;
    }

    .section {
        padding: 100px 1rem 1rem 1rem;
    }

    .about-text {
        font-size: 1rem;
        padding: 1rem;
    }

    .about-text p {
        margin-bottom: 0.8rem;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-text p {
        text-align: center;
    }
}


.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
    border-left: 2px solid var(--primary-color);
    padding-left: 2rem;
}

.experience-card {
    position: relative;
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.experience-card:last-child {
    margin-bottom: 0;
}

.experience-card::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-glow);
}

.experience-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
    transform: translateX(5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.experience-header h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.experience-card h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.date {
    background: rgba(255, 140, 0, 0.1);
    color: var(--text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.experience-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.experience-card ul {
    list-style: none;
    margin: 1rem 0;
}

.experience-card ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}


.skill-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-icons img {
    height: 50px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.skill-icons img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px var(--primary-color));
}


.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.1);
    transform: translateY(-5px);
}

.contact-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.contact-item h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    word-break: break-all;
}


.social-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px var(--primary-glow);
}


#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-welcome {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 5px;
    text-shadow: 0 0 10px var(--primary-glow);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.progress-loader {
    width: 200px;
    height: 6px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.1);
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-glow);
    transition: width 0.02s linear;
}

.loader-text {
    color: var(--primary-color);
    font-size: 1.2rem;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

.loader-percentage {
    font-weight: bold;
    margin-left: 5px;
}

@keyframes loadProgress {
    0% {
        width: 0%;
    }

    40% {
        width: 40%;
    }

    70% {
        width: 80%;
    }

    100% {
        width: 100%;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.loader-hidden {
    opacity: 0;
    visibility: hidden;
}


.logo-image {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px var(--primary-glow));
}