/* CSS Variables for Themes */
:root {
    --bg-primary: #0b0f14;
    --bg-secondary: #0f172a;
    --accent-orange: #ff7a18;
    --accent-orange-light: #ff9f43;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glow: 0 0 20px var(--accent-orange);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.light-theme {
    --bg-primary: #f8f9fa;
    --bg-secondary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --glass-bg: rgba(0, 0, 0, 0.1);
    --glass-border: rgba(0, 0, 0, 0.2);
    --glow: 0 0 20px var(--accent-orange-light);
}

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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    line-height: 1.6;
    scroll-behavior: smooth;
    transition: background 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

/* .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
} */

.nav-container {
    display: flex;
    align-items: center;
}

.nav-links {
    margin-left: auto;
    margin-right: 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-orange);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-orange);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--accent-orange);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    padding: 120px 0 90px;
    display: flex;
    align-items: center;     
    min-height: 100vh;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;       
    gap: 50px;
}

.hero-text {
    flex: 1;
}

/* .hero-text h1 {
    font-size: 3rem;
    margin-bottom: 10px;
} */

.hero-text h1 {
    font-size: 4rem;
    white-space: nowrap;
}

.highlight {
    color: var(--accent-orange);
}

.role {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.description {
    margin-bottom: 30px;
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.badge {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 5px 10px;
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.cta-button {
    background: linear-gradient(45deg, var(--accent-orange), var(--accent-orange-light));
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--glow);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px var(--accent-orange);
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* .profile-img {
    width: 250px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    box-shadow:  0 10px 25px rgba(0,0,0,0.3);
    transition: box-shadow 0.3s ease;
} */
/* gpt */
/* Profile Image Control */
.profile-img {
  width: 250px;        /* size yahan control karo */
  height: auto;
  border-radius: 50%;  /* circle look */
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}


.profile-img:hover {
    box-shadow: 0 0 10px var(--accent-orange), var(--shadow);
    
}

/* About Section */
/* .about {
    padding: 80px 0;
} */


.about h2 {
    text-align: center;
    margin-bottom: 40px;
}

.about-card {
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* .illustration {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    align-items: left;  
} */

.illustration {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}


/* Handwritten About Text Style */

.handwritten {
    font-family: "Comic Sans MS", "Segoe UI", cursive;
}

.hand-line {
    position: relative;
    margin-bottom: 18px;
    padding-bottom: 8px;
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0;
    animation: writeIn 0.8s ease forwards;
}

/* Blue pen underline */
.hand-line::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #3b6cff;
    opacity: 0.7;
    transform: rotate(-1deg);
}

/* One by one animation delay */
.hand-line:nth-child(1) { animation-delay: 0.2s; }
.hand-line:nth-child(2) { animation-delay: 0.6s; }
.hand-line:nth-child(3) { animation-delay: 1s; }
.hand-line:nth-child(4) { animation-delay: 1.4s; }

@keyframes writeIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Experience Section */
.experience {
    padding: 80px 0;
}

#experience h2 {
    text-align: center;
}

#experience h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-orange);
    margin: 10px auto 0;
    border-radius: 2px;
}



/* Container same as projects */
.experience-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center; /* center alignment */
}

/* Box design (same feel as project cards) */
.experience-box {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

/* 🔥 SAME AS PROJECT HOVER */
.experience-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px var(--accent-orange);
}
/* Text styling */
.experience-box h3 {
    color: var(--accent-orange);
    margin-bottom: 8px;
}

.company {
    font-weight: 500;
    margin-bottom: 5px;
}

.duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.experience-box ul {
    padding-left: 18px;
}

.experience-box ul li {
    margin-bottom: 6px;
}
/* Projects Section */
.projects {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
    
}

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

.project-card {
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow), var(--shadow);
}
/* gpt */
.project-card img {
    width: 70%;
    max-width: 500px;   /* 🔥 image ko chhota karega */
    height: 100px;     /* 🔥 height bhi kam */
    object-fit: cover;
    border-radius: 1px;
    margin: 0 auto 15px; /* center + bottom space */
    display: block;
}


/* .project-card img {
    width: 400%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 25px;
} */

.project-link {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: bold;
}

/* Contact Section */
.contact-item a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.contact-info{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;          /* items ke beech space */
    flex-wrap: nowrap;  /* wrap band (ek line me rakhega) */
}

.contact-item  {
    display: flex;
    flex-direction: column;  /* icon upar, text niche */
    align-items: center;
    gap: 5px;
}


.contact-item i {
    font-size: 2.2rem;
    margin-bottom: 5px;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-link {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--bg-primary);
}

/* Footer */
.footer {
    padding: 20px 0;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--glass-border);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        border-top: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-info {
        flex-direction: column;
        gap: 30px;
    }
}

/* Center all section headings */
#about h2,
#projects h2,
#contact h2 {
    text-align: center;
    margin-bottom: 40px;
}


#about h2,
#projects h2,
#contact h2 {
    text-align: center;
}
