:root {
    --bg-dark: #0a0a0f;
    --text-light: #f0f0f5;
    --text-muted: #9494a0;
    --primary: #6d28d9;
    --primary-light: #a78bfa;
    --accent: #00f0ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor-hover .cursor {
    width: 0;
    height: 0;
}

.cursor-hover .cursor-follower {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-text {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 5px;
    color: var(--accent);
}

.progress-bar {
    width: 300px;
    height: 2px;
    background-color: var(--glass-border);
    position: relative;
    overflow: hidden;
}

.progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    transition: padding 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-primary {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--accent);
    padding: 0.8rem 2rem;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary:hover {
    color: var(--bg-dark);
    font-weight: 600;
}

.mt-2 {
    margin-top: 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.title-wrapper {
    overflow: hidden;
    padding: 10px 20px 10px 0;
    /* Extra padding stops GSAP from slicing wide letters */
}

.hero-title {
    font-size: clamp(2rem, 6.5vw, 4.5rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    word-break: keep-all;
}

.subtitle {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 500px;
    margin-top: 2rem;
    line-height: 1.6;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    animation: float 10s ease-in-out infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: 10%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

/* Scroll Indicator removed per user preference */

/* Sections */
section {
    padding: 8rem 10%;
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 4rem;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.skill-tag i {
    font-size: 1.1rem;
    color: var(--primary-light);
    transition: color 0.3s ease;
}

.skill-tag:hover {
    border-color: var(--accent);
    background: rgba(0, 240, 255, 0.1);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.2);
    color: #fff;
}

.skill-tag:hover i {
    color: var(--accent);
}

/* Profile Photo */
.profile-photo-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 20px;
    padding: 10px;
    cursor: pointer;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    position: relative;
    z-index: 2;
    border: 1px solid var(--glass-border);
    transition: transform 0.5s ease;
}

.profile-photo-container:hover .profile-photo {
    transform: scale(1.02);
}

.photo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    filter: blur(30px);
    opacity: 0.4;
    z-index: 1;
    border-radius: 20px;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0.2;
        transform: scale(0.95);
    }

    100% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Experience & Education Resume Section */
.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.column-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--accent);
}

.timeline {
    border-left: 2px solid var(--glass-border);
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: calc(-2rem - 9px);
    top: 2.2rem;
    width: 16px;
    height: 16px;
    background: var(--bg-dark);
    border: 2px solid var(--accent);
    border-radius: 50%;
    z-index: 2;
}

.glass-card-small {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card-small:hover {
    transform: translateX(10px);
    border-color: rgba(0, 240, 255, 0.3);
}

.timeline-item h4 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-desc {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Certifications */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    text-align: center;
    padding: 3rem 2rem;
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

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

.cert-icon {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.cert-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.cert-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: auto;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Exactly 2 projects per row */
    gap: 3rem;
}

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.project-image-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.bg-1 {
    background-image: url('Images/Learning app.png');
}

.bg-2 {
    background-image: url('Images/employee Stats.png');
}

.bg-3 {
    background-image: url('Images/Credit  card fraud.png');
}

.bg-4 {
    background-image: url('Images/bank loan analysis.png');
}

.bg-5 {
    background-image: url('Images/titanic Survival Prediction.png');
}

.bg-6 {
    background-image: url('Images/Employee Turnover.png');
}

.bg-7 {
    background-image: url('Images/House sales Prediction.png');
}

.bg-8 {
    background-image: url('Images/Marketing Sales Prediction.png');
}

.bg-9 {
    background-image: url('Images/Iris Classification.png');
}

.bg-10 {
    background-image: url('Images/Password MAsking.png');
}

.bg-11 {
    background-image: url('Images/Aviation Emission Visualizer.png');
}

.bg-12 {
    background-image: url('Images/Amazon Sales Analysis.png');
}

.bg-13 {
    background-image: url('Images/Customer Behavior Analysis.png');
}
.bg-14 {
    background-image: url('Images/Walmart Analysis.png');
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-btn {
    padding: 0.8rem 2rem;
    background: var(--bg-dark);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Syncopate', sans-serif;
    font-size: 0.8rem;
    border: 1px solid var(--accent);
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.project-card:hover .view-btn {
    transform: translateY(0);
}

.view-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: auto;
}

/* Contact Section */
.contact-card {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.1);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Certificate Modal */
.cert-card {
    cursor: pointer;
}

.cert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.4s, opacity 0.4s ease;
}

.cert-modal.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.cert-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(15px);
}

.cert-modal-content {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 800px;
    height: 80vh;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.cert-modal.active .cert-modal-content {
    transform: scale(1);
}

.cert-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    padding: 0.5rem;
}

.cert-modal-close:hover {
    color: var(--accent);
    transform: rotate(90deg) scale(1.2);
}

.cert-modal-image-placeholder {
    width: 100%;
    height: 100%;
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, rgba(109, 40, 217, 0.05), rgba(0, 240, 255, 0.05));
    text-align: center;
}

.cert-modal-image-placeholder i {
    font-size: 5rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
}

.cert-modal-image-placeholder h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.cert-modal-image-placeholder p {
    color: var(--accent);
    font-size: 1.2rem;
}

/* Connect Modal Buttons */
.connect-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.connect-btn {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem 2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.connect-btn i {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.connect-btn:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.1);
}

.connect-btn:hover i {
    transform: scale(1.2);
}

.connect-btn.whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.15);
}

.connect-btn.whatsapp:hover i {
    color: #25D366;
}

.connect-btn.linkedin:hover {
    border-color: #0A66C2;
    color: #0A66C2;
    box-shadow: 0 5px 15px rgba(10, 102, 194, 0.15);
}

.connect-btn.linkedin:hover i {
    color: #0A66C2;
}

.connect-btn.mail:hover {
    border-color: #EA4335;
    color: #EA4335;
    box-shadow: 0 5px 15px rgba(234, 67, 53, 0.15);
}

.connect-btn.mail:hover i {
    color: #EA4335;
}

.connect-btn.instagram:hover {
    border-color: #E1306C;
    color: #E1306C;
    box-shadow: 0 5px 15px rgba(225, 48, 108, 0.15);
}

.connect-btn.instagram:hover i {
    color: #E1306C;
}

.connect-btn.glassdoor:hover {
    border-color: #0CAA41;
    color: #0CAA41;
    box-shadow: 0 5px 15px rgba(12, 170, 65, 0.15);
}

.connect-btn.glassdoor:hover i {
    color: #0CAA41;
}

/* Daily Quote */
.daily-quote {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    max-width: 550px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.daily-quote:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.05);
}

.quote-icon {
    color: var(--accent);
    font-size: 1.5rem;
    opacity: 0.8;
}

.quote-text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
    .section-title {
        font-size: 3rem;
    }

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

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

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .glass-card {
        padding: 2rem;
    }

    .hero {
        padding: 0 5%;
    }

    section {
        padding: 4rem 5%;
    }
}
