@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00d4ff;
    --secondary: #7b2ff7;
    --accent: #ff0080;
    --bg-light: #ffffff;
    --bg-dark: #0a0a0f;
    --card-light: #f5f5f5;
    --card-dark: rgba(20, 20, 30, 0.8);
    --text-light: #333333;
    --text-dark: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Light Theme */
body.light-theme {
    background: var(--bg-light);
    color: var(--text-light);
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .logo,
body.light-theme .nav-link {
    color: var(--text-light);
}

body.light-theme .hero,
body.light-theme .about,
body.light-theme .skills,
body.light-theme .projects,
body.light-theme .contact {
    background: var(--bg-light);
}

body.light-theme .about-text,
body.light-theme .project-info,
body.light-theme .contact-left {
    background: var(--card-light);
    color: var(--text-light);
}

body.light-theme .skill-box {
    background: var(--card-light);
}

body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
    background: var(--card-light);
    color: var(--text-light);
}

body.light-theme .footer {
    background: var(--card-light);
    color: var(--text-light);
}

/* Dark Theme (Default) */
body.dark-theme {
    background: var(--bg-dark);
    color: var(--text-dark);
}

body.dark-theme .navbar {
    background: rgba(10, 10, 15, 0.95);
}

body.dark-theme .logo,
body.dark-theme .nav-link {
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(180deg);
}

.theme-toggle i {
    font-size: 22px;
    color: white;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    backdrop-filter: blur(20px);
    z-index: 999;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.greeting {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

#greetingEmoji {
    font-size: 40px;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

#greetingText {
    font-size: 32px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h1 {
    font-size: 60px;
    font-weight: 800;
    margin-bottom: 20px;
}

.name-gradient {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-container {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    min-height: 40px;
}

.cursor {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.description {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-dark);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-5px);
    border-color: transparent;
}

.hero-image {
    display: flex;
    justify-content: center;
}

.image-box {
    position: relative;
    width: 400px;
    height: 400px;
}

.glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--primary), transparent);
    filter: blur(50px);
    opacity: 0.3;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--border);
    position: relative;
    z-index: 2;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.line {
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    margin: 0 auto;
    border-radius: 10px;
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.about-text {
    background: var(--card-dark);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--primary);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    opacity: 0.9;
}

.info-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.info-box i {
    font-size: 24px;
    color: var(--primary);
}

.info-box span {
    font-size: 12px;
    opacity: 0.7;
}

.info-box p {
    font-weight: 600;
    margin: 0;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tech-stack span {
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
}

/* Skills Section */
.skills {
    padding: 100px 0;
}

.skills-grid {
    display: grid;
    gap: 30px;
}

.skill-box {
    background: var(--card-dark);
    backdrop-filter: blur(20px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.skill-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.skill-info h3 {
    font-size: 18px;
    font-weight: 600;
}

.skill-info span {
    color: var(--primary);
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    animation: fillBar 2s ease;
}

@keyframes fillBar {
    from { width: 0; }
}

.skill-progress.html { width: 90%; }
.skill-progress.css { width: 85%; }
.skill-progress.js { width: 80%; }
.skill-progress.react { width: 75%; }
.skill-progress.python { width: 70%; }
.skill-progress.git { width: 85%; }

/* Projects Section */
.projects {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-dark);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 212, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1) rotate(360deg);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.project-info p {
    opacity: 0.8;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {
    padding: 5px 15px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary);
}

/* Contact Section */
.contact {
    padding: 100px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contact-left {
    background: var(--card-dark);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.contact-left h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary);
}

.contact-left p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-item p {
    opacity: 0.8;
    margin: 0;
}

.contact-form {
    background: var(--card-dark);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    resize: none;
}

/* Footer */
.footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    opacity: 0.8;
}

.footer i {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-box {
        width: 300px;
        height: 300px;
    }
    
    .hero-text h1 {
        font-size: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-text h1 {
        font-size: 32px;
    }
    
    #greetingText {
        font-size: 24px;
    }
    
    .typing-container {
        font-size: 20px;
    }
    
    .section-title h2 {
        font-size: 32px;
    }
}
.about-img img {
    width: 350px; /* Ya aap size customize kar sakte hain */
    height: 350px; /* Isse photo ek square mein rahegi */
    object-fit: cover; /* Isse photo stretch nahi hogi */
    border-radius: 50%; /* Ye line photo ko full circle bana dega */
    border: 5px solid var(--border); /* Optional: Circle boundary */
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); /* Optional: Soft shadow */
    transition: all 0.3s ease; /* Optional: smooth transition for hover effects */
}
.btn-resume {
    background: linear-gradient(135deg, #ff0080, #7b2ff7);
    color: white;
    box-shadow: 0 5px 25px rgba(255, 0, 128, 0.3);
    border: none;
}

.btn-resume:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 0, 128, 0.5);
    color: white;
}

/* Mobile responsive ke liye gap maintain rahega */
@media (max-width: 600px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
}
/* =========================================
   NEW THEME SWITCHER & COLORS
   ========================================= */

.theme-switcher {
    position: fixed;
    top: 100px;
    right: -220px; /* Hidden by default */
    width: 220px;
    background: var(--card-dark);
    border: 1px solid var(--border);
    border-radius: 10px 0 0 10px;
    padding: 20px;
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(20px);
}

.theme-switcher.open {
    right: 0;
}

.theme-btn {
    position: absolute;
    left: -50px;
    top: -1px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
}

.theme-panel h4 {
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.theme-colors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.theme-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.theme-color:hover {
    transform: scale(1.2);
}

/* Color Palette Circles */
.theme-color.default { background: linear-gradient(135deg, #00d4ff, #7b2ff7); }
.theme-color.red { background: linear-gradient(135deg, #ff416c, #ff4b2b); }
.theme-color.orange { background: linear-gradient(135deg, #f5af19, #f12711); }
.theme-color.green { background: linear-gradient(135deg, #38ef7d, #11998e); }
.theme-color.dark-blue { background: linear-gradient(135deg, #1cb5e0, #000046); }
.theme-color.sky-blue { background: linear-gradient(135deg, #00f2fe, #4facfe); }
.theme-color.white { background: #ffffff; border: 2px solid #ccc; }
.theme-color.black { background: #000000; border: 2px solid #444; }

/* Theme Variables Overrides */
body[data-theme="red"] {
    --primary: #ff416c;
    --secondary: #ff4b2b;
    --accent: #ffb88c;
}
body[data-theme="orange"] {
    --primary: #f5af19;
    --secondary: #f12711;
    --accent: #ff9900;
}
body[data-theme="green"] {
    --primary: #38ef7d;
    --secondary: #11998e;
    --accent: #a8e063;
}
body[data-theme="dark-blue"] {
    --primary: #1cb5e0;
    --secondary: #000046;
    --bg-dark: #020012; 
    --card-dark: rgba(10, 10, 40, 0.8);
}
body[data-theme="sky-blue"] {
    --primary: #00f2fe;
    --secondary: #4facfe;
    --bg-dark: #0a1128;
    --card-dark: rgba(20, 30, 60, 0.8);
}
body[data-theme="black"] {
    --primary: #ffffff;
    --secondary: #aaaaaa;
    --bg-dark: #000000;
    --card-dark: rgba(15, 15, 15, 0.8);
    --border: rgba(255, 255, 255, 0.2);
}
/* White Theme overrides everything to light mode */
body[data-theme="white"] {
    --primary: #ff0080; /* Pink accent for white theme */
    --secondary: #7b2ff7;
    --bg-dark: #f9f9f9;
    --card-dark: #ffffff;
    --text-dark: #222222;
    --border: rgba(0, 0, 0, 0.1);
}
body[data-theme="white"] .navbar { background: rgba(255, 255, 255, 0.95); }
/* ===============================
   Experience Timeline Section
   =============================== */
.experience {
    padding: 80px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* The vertical line */
.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background-color: #00a8ff; /* Change this if you have a theme color variable */
    left: 20px;
    top: 0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 30px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* The dots on the timeline */
.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #00a8ff; 
    border-radius: 50%;
    left: 13px;
    top: 5px;
    box-shadow: 0 0 10px rgba(0, 168, 255, 0.6);
}

/* Content Box */
.timeline-content {
    background-color: #1a1a1a; /* Dark background matching typical dark themes */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 168, 255, 0.15);
    border-color: #00a8ff;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: #bbb;
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-date {
    display: inline-block;
    font-size: 0.9rem;
    color: #00a8ff;
    margin-bottom: 15px;
    font-weight: 600;
    background: rgba(0, 168, 255, 0.1);
    padding: 5px 10px;
    border-radius: 5px;
}

.timeline-content p {
    color: #ccc;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Code for Mobile */
@media (max-width: 768px) {
    .timeline::before {
        left: 10px;
    }
    .timeline-item {
        padding-left: 40px;
    }
    .timeline-dot {
        left: 3px;
    }
}