/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #0f172a;
    --accent: #06b6d4;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --border: #e2e8f0;
    --shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 30px 50px -20px rgba(139, 92, 246, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
    --google-blue: #4285f4;
    --google-red: #ea4335;
    --google-yellow: #fbbc05;
    --google-green: #34a853;
}

html {
    font-size: 62.5%;    
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
}

/* ===== CUSTOM CURSOR ===== */
.cursor-1, .cursor-2 {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: 0.1s;
}

/* .cursor-1 {
    width: 1rem;
    height: 1rem;
    background-color: var(--primary);
    transform: translate(-50%, -50%);
} */

/* .cursor-2 {
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--primary);
    transform: translate(-50%, -50%);
    transition: 0.15s;
} */

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 2.5rem;
    border-radius: 10rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.navbar a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 500;
    padding: 0.8rem 1.8rem;
    border-radius: 2rem;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.navbar a:hover {
    background: var(--primary);
    color: white;
}

#menu-bars {
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    font-size: 2.5rem;
    background: var(--primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    cursor: pointer;
}

/* ===== SECTIONS ===== */
section {
    min-height: 100vh;
    padding: 8rem 10%;
}

/* ===== HOME SECTION ===== */
.home {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 5rem;
    background: linear-gradient(135deg, #f5f3ff 0%, #ffffff 100%);
}

.home-content .greeting {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.greeting-badge {
    background: var(--primary-light);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
}

.home-content h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.home-content h1 span {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.typing-container {
    font-size: 2.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
    min-height: 4rem;
}

.typed-text {
    color: var(--primary);
    font-weight: 600;
    border-right: 2px solid var(--primary);
    padding-right: 0.5rem;
}

.home-content .description {
    font-size: 1.7rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 2rem;
}

.btn {
    padding: 1.5rem 3.5rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.btn-primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.home-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    animation: morphing 10s ease-in-out infinite;
}

@keyframes morphing {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    75% { border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 1rem 2rem;
    border-radius: 5rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 10%;
    left: -10%;
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-subtitle {
    font-size: 1.6rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

.section-title span {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    align-items: start;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 2rem;
    box-shadow: var(--shadow);
}

.experience-badge {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background: var(--bg-gradient);
    color: white;
    padding: 2rem;
    border-radius: 2rem;
    text-align: center;
    box-shadow: var(--shadow-hover);
}

.experience-badge .years {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.experience-badge .text {
    font-size: 1.4rem;
    opacity: 0.9;
}

.about-content h3 {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.7rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.detail-item {
    background: var(--bg-light);
    padding: 1.8rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.detail-item .label {
    font-size: 1.4rem;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.5rem;
}

.detail-item .value {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--secondary);
}

/* ===== SKILLS SECTION ===== */
.skills {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
}

.skills-category {
    margin-bottom: 5rem;
}

.category-title {
    font-size: 2.4rem;
    color: var(--secondary);
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-title i {
    color: var(--primary);
    font-size: 2.8rem;
}

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

.skill-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.skill-header h3 {
    font-size: 1.8rem;
    color: var(--secondary);
}

.skill-percent {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--primary);
}

.skill-bar {
    width: 100%;
    height: 0.8rem;
    background: var(--border);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.skill-progress {
    height: 100%;
    background: var(--bg-gradient);
    border-radius: 1rem;
    width: 0;
    transition: width 1s ease;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: var(--bg-light);
    color: var(--primary);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

/* ===== EXPERIENCE SECTION ===== */
.experience {
    background: var(--bg-white);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-light);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    margin-bottom: 5rem;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 3rem);
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 3rem);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--primary-light);
    z-index: 2;
}

.timeline-content {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 2rem;
    position: relative;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.timeline-date {
    display: inline-block;
    background: var(--bg-gradient);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 5rem;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.timeline-content h3 {
    font-size: 2.2rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.timeline-content .company {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.timeline-content p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.achievements {
    list-style: none;
    margin-bottom: 2rem;
}

.achievements li {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.achievements li i {
    color: var(--success);
    font-size: 1.4rem;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

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

.project-card {
    background: var(--bg-white);
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-header {
    background: var(--bg-gradient);
    padding: 2rem;
    color: white;
}

.project-header h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.project-header .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.project-header .tech-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: 2rem;
    font-size: 1.2rem;
}

.project-content {
    padding: 2.5rem;
}

.project-content p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.features-list li i {
    color: var(--success);
    font-size: 1.3rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-link {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: var(--bg-white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--bg-gradient);
    padding: 4rem;
    border-radius: 3rem;
    color: white;
}

.contact-info h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.contact-info > p {
    font-size: 1.6rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item i {
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.contact-item .info h4 {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.8;
    margin-bottom: 0.3rem;
}

.contact-item .info p {
    font-size: 1.7rem;
    font-weight: 600;
    margin: 0;
}

.contact-item .info a {
    color: white;
    text-decoration: none;
}

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

.social-link {
    width: 5rem;
    height: 5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-5px);
}

.contact-form {
    background: var(--bg-light);
    padding: 4rem;
    border-radius: 3rem;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 1.5rem;
    background: var(--bg-white);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

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

/* ===== FOOTER ===== */
footer {
    background: var(--secondary);
    color: white;
    text-align: center;
    padding: 3rem;
    font-size: 1.5rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .home-content h1 {
        font-size: 4.5rem;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: calc(50% + 2rem);
    }
    .timeline-item:nth-child(even) {
        padding-left: calc(50% + 2rem);
    }
}

@media (max-width: 991px) {
    .navbar {
        display: none;
    }

    #menu-bars {
        display: block;
    }

    .home {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-content .description {
        margin-left: auto;
        margin-right: auto;
    }

    .cta-buttons {
        justify-content: center;
    }

    .floating-badge {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 2rem;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        padding-left: 5rem;
        padding-right: 0;
    }

    .timeline-dot {
        left: 2rem;
    }

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

@media (max-width: 768px) {
    section {
        padding: 6rem 5%;
    }

    .section-title {
        font-size: 3.2rem;
    }

    .home-content h1 {
        font-size: 3.5rem;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 55%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}


/* ===== VISITOR COUNTER ===== */

.visitor-counter{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    margin-top:2rem;
    gap:0.6rem;
}

.counter-label{
    font-size:1.3rem;   /* पहले 1.6rem */
    font-weight:600;
    color:var(--primary);
    letter-spacing:0.5px;
}

.counter-box{
    background:var(--bg-white);
    padding:0.6rem 1.5rem;   /* पहले 1.2rem 2.5rem */
    border-radius:1rem;      /* थोड़ा छोटा */
    box-shadow:var(--shadow);
    border:1px solid var(--border);
    transition:all .3s ease;
}

.counter-box:hover{
    transform:translateY(-2px);
    box-shadow:var(--shadow-hover);
}

/* .counter-box img{
    height:20px;   /* पहले 30px */
} */

.counter-box img{
    height:20px;
    filter: invert(1);
}
