 /* CSS Variables for consistent theming */
 :root {
    --navy: #1a2a3a;
    --dark-navy: #0f1922;
    --ivory: #f8f4e3;
    --light-ivory: #fffdf8;
    --charcoal: #2c3e50;
    --gold: #f0c129;
    --soft-gold: #e6c87a;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Open Sans', sans-serif;
    --shadow-soft: 0 2px 15px rgba(48, 137, 189, 0.336);
    --shadow-strong: 0 4px 30px rgba(0, 0, 0, 0.274);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Diagonal scrollbar for an elegant touch */
    scrollbar-width: thin;
    scrollbar-color: var(--soft-gold) var(--navy);
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--soft-gold);
    border-radius: 10px;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    background-color: var(--light-ivory);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.5px;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    position: relative;
    margin-bottom: 2rem;
}

/* Unique underline effect for section headings */
h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--soft-gold));
    transition: var(--transition);
}

h2:hover::after {
    width: 100px;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
    font-size: clamp(1rem, 1.1vw, 1.1rem);
}

a {
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

a:hover {
    color: var(--gold);
}

/* Elegant link underline animation */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 0;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

section {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

img {
    max-width: 100%;
    height: auto;
}

/* Buttons with elegant hover effects */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    margin: 0.5rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--navy);
    background: transparent;
    color: var(--navy);
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--navy);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    color: var(--ivory);
}

.btn:hover::before {
    left: 0;
}

.btn-primary {
    background: var(--navy);
    color: var(--ivory);
}

.btn-primary::before {
    background: var(--gold);
}

.btn-primary:hover {
    border-color: var(--gold);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    transition: var(--transition);
    mix-blend-mode: normal;
    background-color: var(--light-ivory); /* Light ivory background */}

.header-scrolled {
    background-color: black; 
    padding: 1rem 2rem;
    backdrop-filter: blur(10px); /* Add a blur effect for modern look */
    mix-blend-mode: normal;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--navy);
    text-transform: uppercase;
}

.logo span {
    color: var(--gold);
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--navy);
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: var(--transition);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2), .hamburger span:nth-child(3) {
    top: 9px;
}

.hamburger span:nth-child(4) {
    top: 18px;
}

.hamburger.open span:nth-child(1), .hamburger.open span:nth-child(4) {
    width: 0%;
    left: 50%;
}

.hamburger.open span:nth-child(2) {
    transform: rotate(45deg);
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero Section with creative elements */
#home {
    background-color: var(--light-ivory);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--charcoal);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Decorative elements */
.decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--navy), transparent);
    opacity: 0.1;
    z-index: 0;
}

.circle-1 {
    width: 450px;
    height: 450px;
    top: -150px;
    right: -100px;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: 50px;
    left: -100px;
    background: linear-gradient(45deg, var(--gold), transparent);
}

/* About Section */
#about {
    background-color: var(--navy);
    color: var(--light-ivory);
}

#about h2 {
    color: var(--light-ivory);
}

#about h2::after {
    background: linear-gradient(90deg, var(--gold), transparent);
}

.about-content {
    display: block;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    max-width: 100%;
    float: left;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--shadow-strong);;
}

.about-image img {
    transition: var(--transition);
    transform: scale(1.05);
    float: right;
}

.about-image:hover img {
    transform: scale(1);
}

/* Elegant skill bars with animation */
.skillsab {
    margin-top: 2rem;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    position: absolute;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--gold), var(--soft-gold));
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Projects Section */
#projects {
    background-color: var(--light-ivory);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    transform: translateY(0);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 230px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 42, 58, 0.2), rgba(26, 42, 58, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgb(71, 71, 71);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    transform: translateY(20px);
    opacity: 0;
}

.project-card:hover .project-links a {
    transform: translateY(0);
    opacity: 1;
}

.project-card:hover .project-links a:nth-child(1) {
    transition-delay: 0.1s;
}

.project-card:hover .project-links a:nth-child(2) {
    transition-delay: 0.2s;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tag {
    padding: 0.2rem 0.8rem;
    background-color: var(--navy);
    color: var(--ivory);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Experience Section with timeline */
#experience {
    background: url('/assets/experience-bg.png') no-repeat center center fixed;
    background-size: cover;
    color: var(--light-ivory);
}

#experience h2 {
    color: var(--light-ivory);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--gold);
    top: 0;
    bottom: 0;
    left: 0;
    margin-left: 30px;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--navy);
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
    background-color: var(--gold);
    color: var(--navy);
}

.timeline-content {
    padding: 1.5rem;
    background-color: var(--dark-navy);
    border-radius: 30px;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    background-color: var(--navy);
    transform: translateX(10px);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--light-ivory);
}

.timeline-company {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    display: block;
}

/* Contact Section */
#contact {
    background-color: var(--light-ivory);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--navy);
    color: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background-color: var(--gold);
    transform: rotate(15deg);
}

.contact-text {
    flex: 1;
}

.contact-text h4 {
    margin-bottom: 0.2rem;
}

/* Floating label form */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-control {
    width: 100%;
    padding: 1rem 0;
    font-size: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--charcoal);
    color: var(--charcoal);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--navy);
}

.form-label {
    position: absolute;
    top: 1rem;
    left: 0;
    pointer-events: none;
    transition: var(--transition);
    color: var(--charcoal);
    opacity: 0.7;
}

.form-control:focus ~ .form-label,
.form-control:not(:placeholder-shown) ~ .form-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--navy);
    opacity: 1;
}

.form-control::placeholder {
    color: transparent;
}

textarea.form-control {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    background-color: var(--dark-navy);
    color: var(--ivory);
    text-align: center;
    padding: 2rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ivory);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--gold);
    color: var(--navy);
    transform: translateY(-5px);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Back to top button with smooth animation */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--navy);
    color: var(--ivory);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
    box-shadow: var(--shadow-soft);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--gold);
    color: var(--navy);
}

/* Unique spotlight effect - CSS-only */
.spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.1;
    background: radial-gradient(
        circle at var(--x) var(--y),
        transparent,
        rgba(0, 0, 0, 0.3) 25%
    );
    display: none;
}

/* Animation for hero section */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 1.5rem;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--light-ivory);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: var(--transition);
    }

    .nav-list.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        padding-left: 70px;
    }

    .timeline-dot {
        width: 40px;
        height: 40px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
    }
}

/* Modern CSS features */
@supports (backdrop-filter: blur(10px)) {
    .header-scrolled {
        background-color: var(--ivory);
        backdrop-filter: blur(10px);
    }
}

/* Custom selection styling */
::selection {
    background: var(--soft-gold);
    color: var(--navy);
}

/* Text balance for better typography */
@supports (text-wrap: balance) {
    h1, h2, h3, .hero-subtitle {
        text-wrap: balance;
    }
}
/* Skills Section */

#skills {
    margin: 0%;
    padding: 0px;
    background-color: rgb(248, 246, 235);
}
.skill-container{
    margin: 200px;
}
.section-subtitle {
    text-align: center;
    color: #ffffff;
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.skill-item {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(71, 71, 71, 0.178);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(230, 230, 230, 0.1);
}

.skill-icon {
    height: 60px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-icon img {
    height: 60px;
    width: auto;
}

.skill-name {
    font-weight: 600;
    font-size: 16px;
    color: #374151;
}

/* Responsive */
@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .skill-container{
        margin: 100px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* loader */
        #loader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(255, 255, 255, 0.9);
            z-index: 9999;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .spinner {
            width: 60px;
            height: 60px;
            position: relative;
        }

        .double-bounce1, .double-bounce2 {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background-color: #3498db;
            opacity: 0.6;
            position: absolute;
            top: 0;
            left: 0;
            animation: bounce 2s infinite ease-in-out;
        }

        .double-bounce2 {
            animation-delay: -1s;
        }

        @keyframes bounce {
            0%, 100% {
                transform: scale(0);
            }
            50% {
                transform: scale(1);
            }
        }