:root {
    --bg-dark: #0a0a14;
    --bg-card: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #e0e0e0;
    --text-muted: #a0a0b0;
    --accent-primary: #00f2ff;
    /* Neon Cyan */
    --accent-secondary: #7000ff;
    /* Neon Purple */
    --accent-success: #00ff9d;
    --font-main: 'Outfit', sans-serif;
    --gradient-text: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--accent-primary);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Glassmorphism Utilities */
.glass-nav,
.glass-card {
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Navbar */
nav {
    position: fixed;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: 0.3s;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo .accent {
    color: var(--accent-primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-primary);
    transition: width 0.3s;
}

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

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

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

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a2e 0%, #0a0a14 100%);
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.status-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 157, 0.1);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--accent-success);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-success);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-success);
}

.pulse {
    animation: pulse 2s infinite;
}

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

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    cursor: none;
    /* Let custom cursor handle hints */
}

.btn-primary {
    background: var(--accent-primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.btn-secondary {
    border: 1px solid var(--border-glass);
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-main);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-main);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        top: 10px;
        opacity: 1;
    }

    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Sections General */
.section-padding {
    padding: 5rem 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title.center {
    display: block;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50%;
    height: 3px;
    background: var(--gradient-text);
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

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

.about-image-wrapper {
    position: relative;
}

.image-frame {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    background: rgba(10, 10, 20, 0.9);
    padding: 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    animation: float 3s ease-in-out infinite;
}


.python-card {
    top: 20px;
    left: -20px;
    border-left: 3px solid #FFD43B;
    animation-duration: 3s;
}

.sql-card {
    bottom: 40px;
    right: -20px;
    border-left: 3px solid #00BCF2;
    animation-delay: 1.5s;
    animation-duration: 4s;
}

.powerbi-card {
    top: 40%;
    right: -30px;
    border-left: 3px solid #F2C811;
    animation-delay: 0.8s;
    animation-duration: 3.5s;
}

.mysql-card {
    bottom: 20px;
    left: -10px;
    border-left: 3px solid #00758F;
    animation-delay: 2.5s;
    animation-duration: 4.5s;
}

.git-card {
    top: 10px;
    right: 20px;
    border-left: 3px solid #F05032;
    /* Git Orange */
    animation-delay: 0.5s;
    animation-duration: 5s;
}

.excel-card {
    top: 50%;
    left: -35px;
    /* Perimeter: Left side */
    border-left: 3px solid #217346;
    /* Excel Green */
    animation-delay: 3s;
    animation-duration: 4s;
}


@keyframes float {

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

    50% {
        transform: translateY(-10px);
    }
}

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

.about-text strong {
    color: var(--accent-primary);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--accent-primary);
    padding-bottom: 2px;
}

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

.skill-category {
    padding: 2rem;
    border-radius: 15px;
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-main);
}

.chart-container {
    height: 200px;
    position: relative;
}

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

.tag {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
    transition: 0.3s;
}

.tag:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-2px);
}

/* Experience Section */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.experience-timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent-primary), transparent);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
    box-shadow: 0 0 15px var(--accent-primary);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    left: 11px;
    top: 0;
    box-shadow: 0 0 15px var(--accent-primary);
    z-index: 2;
    transition: 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    transform: scale(1.2);
}

.timeline-content {
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content:hover {
    transform: translateX(10px) translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(0, 242, 255, 0.08);
    color: var(--accent-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.timeline-content h3 {
    color: var(--text-main);
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.timeline-content .company {
    color: var(--accent-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.timeline-content .company::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--accent-secondary);
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--text-muted);
}

.timeline-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    position: relative;
    padding-left: 1.5rem;
    list-style: none;
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

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

.cert-card {
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    /* Transition handled by JS observer */
}

.cert-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cert-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 15px 30px -10px rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.cert-icon {
    font-size: 3rem;
    color: var(--accent-primary);
    background: rgba(0, 242, 255, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.1);
}

.cert-card:hover .cert-icon {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
    transform: rotateY(360deg);
    transition: 0.6s;
}

.cert-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    line-height: 1.4;
}

.cert-provider {
    color: var(--accent-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.cert-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    border: 1px solid var(--border-glass);
}


/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 242, 255, 0.1);
}

.project-img-container {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-img-container img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: 0.3s;
}

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

.btn-small {
    padding: 0.5rem 1rem;
    background: var(--accent-primary);
    color: #000;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-dark {
    background: #000;
    color: #fff;
}

.project-content {
    padding: 1.5rem;
}

.project-tags {
    margin-bottom: 1rem;
}

.tiny-tag {
    font-size: 0.75rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 0.5rem;
    font-weight: 700;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

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

/* Contact Section */
/* Contact Section */
.contact-wrapper-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.contact-form {
    padding: 2.5rem;
    border-radius: 15px;
    width: 100%;
    max-width: 600px;
    /* Centered width */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s ease-out;
}

.contact-form.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered form elements */
.contact-form .form-group,
.contact-form button {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.5s ease-out;
}

.contact-form .form-group.visible,
.contact-form button.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form .form-group:nth-child(1) {
    transition-delay: 0.1s;
}

.contact-form .form-group:nth-child(2) {
    transition-delay: 0.2s;
}

.contact-form .form-group:nth-child(3) {
    transition-delay: 0.3s;
}

.contact-form button.visible {
    transition-delay: 0.4s;
}

/* Interactive Focus Effects */
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.02);
}

/* Button Hover Animation */
.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 242, 255, 0.4);
}

/* Remove side-by-side layout styles */
.contact-wrapper {
    display: none;
    /* Safely hide if legacy class remains */
}

/* Ensure inputs are still styled */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form {
    padding: 2.5rem;
    border-radius: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 5px;
    color: #fff;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.btn-block {
    width: 100%;
}

/* Reduced padding for Contact Section if followed by footer */
#contact.section-padding {
    padding-bottom: 2rem;
}

/* Advanced Footer */
.advanced-footer {
    background: linear-gradient(to top, #050510, #0a0a14);
    padding: 4rem 10% 1rem;
    position: relative;
    border-top: 1px solid var(--border-glass);
}

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

.footer-col {
    padding: 2rem;
    border-radius: 15px;
    height: 100%;
}

.footer-header h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid #ffcc00;
    /* Gold/Yellow accent from image */
    color: #fff;
}

.footer-col p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.keep-rising {
    color: #fff !important;
    font-weight: 600;
}

.footer-bio i {
    color: var(--accent-secondary);
    margin-right: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a i {
    font-size: 0.8rem;
    color: var(--accent-primary);
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.footer-contact-item i {
    color: #ffcc00;
    /* Gold accent */
    background: rgba(255, 204, 0, 0.1);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid var(--border-glass);
}

.footer-socials a:hover {
    background: var(--accent-primary);
    color: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.credits .accent {
    color: #ffcc00;
    font-weight: 600;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #ffcc00;
    /* Gold accent */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    pointer-events: auto;
    bottom: 30px;
    /* Ensure visible */
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Remove old footer styles */
footer {
    text-align: inherit;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    color: inherit;
}

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

    .cursor-dot,
    .cursor-outline {
        display: none;
        /* Hide custom cursor on mobile */
    }

    body {
        cursor: auto;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .split-layout,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 4rem 5%;
    }

    .image-frame {
        height: 300px;
    }
}