:root {
    /* Dark theme variables (default) */
    --bg-primary: #0a0a16;
    --bg-secondary: #121225;
    --bg-accent: #1a1a35;
    --text-primary: #ffffff;
    --text-secondary: #ccccdd;
    --accent-1: #00f7ff;
    /* Cyan */
    --accent-2: #7700ff;
    /* Purple */
    --accent-3: #ff00c8;
    /* Magenta */
    --accent-4: #0066ff;
    /* Blue */
    --glow-intensity: 8px;
    --card-bg: rgba(25, 25, 50, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);
}

/* Base styles for custom cursor */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out;
}

/* Main cursor dot */
.cursor {
    width: 8px;
    height: 8px;
    background-color: #00f7ff;
    border-radius: 50%;
    mix-blend-mode: difference;
}

/* Follower circle */
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: rgba(119, 0, 255, 0.2);
    border: 2px solid #7700ff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Hover effect on interactive elements */
.cursor.hover,
.cursor-follower.hover {
    transform: scale(1.5);
    background-color: #ff00aa;
    border-color: #ff00aa;
    box-shadow: 0 0 15px #ff00aa;
}

/* Optional: Smooth trailing effect */
.cursor-follower {
    transition: transform 0.15s ease-out;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.preloader-content {
    text-align: center;
}

.cube-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    perspective: 800px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 3s infinite linear;
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-1);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 247, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-1);
}

.front {
    transform: rotateY(0deg) translateZ(50px);
}

.back {
    transform: rotateY(180deg) translateZ(50px);
}

.right {
    transform: rotateY(90deg) translateZ(50px);
}

.left {
    transform: rotateY(-90deg) translateZ(50px);
}

.top {
    transform: rotateX(90deg) translateZ(50px);
}

.bottom {
    transform: rotateX(-90deg) translateZ(50px);
}

@keyframes rotate {
    from {
        transform: rotateY(0) rotateX(0);
    }

    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    background: rgba(10, 10, 22, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo span {
    color: var(--accent-1);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-1);
    transition: width 0.3s;
}

.nav-links a:hover:after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 5px;
    transition: all 0.3s linear;
}

/* Hero Section - Redesigned with Typing Effect */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 var(--glow-intensity) var(--accent-1),
        0 0 calc(var(--glow-intensity) * 2) var(--accent-2);
    animation: glow-pulse 2s infinite alternate;
}

@keyframes glow-pulse {
    from {
        text-shadow: 0 0 var(--glow-intensity) var(--accent-1),
            0 0 calc(var(--glow-intensity) * 2) var(--accent-2);
    }

    to {
        text-shadow: 0 0 calc(var(--glow-intensity) * 1.5) var(--accent-1),
            0 0 calc(var(--glow-intensity) * 3) var(--accent-2);
    }
}

.hero h1 span {
    color: var(--accent-1);
    display: inline;
    font-size: 2.5rem;
    margin-top: 10px;
    min-height: 60px;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.typing-text {
    border-right: 2px solid var(--accent-1);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: var(--accent-1);
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--accent-1);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    margin-right: 15px;
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--accent-1);
    transition: width 0.3s;
    z-index: -1;
}

.btn:hover:before {
    width: 100%;
}

.btn:hover {
    color: var(--bg-primary);
}

.btn-primary {
    background: var(--accent-1);
    color: var(--bg-primary);
}

.btn-primary:before {
    background: var(--bg-primary);
}

.btn-primary:hover {
    color: var(--accent-1);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.profile-img {
    flex: 1;
    position: relative;
    perspective: 1000px;
}

.profile-img img {
    width: 100%;
    border-radius: 10px;
    transform: rotateY(0deg);
    transition: transform 0.5s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-img:hover img {
    transform: rotateY(15deg);
}

.about-text {
    flex: 2;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-1);
}

.timeline {
    margin-top: 35px;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 30px;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 10px var(--accent-1);
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 25px;
    width: 2px;
    height: calc(100% + 10px);
    background: var(--accent-1);
}

.timeline-item:last-child:after {
    display: none;
}

.timeline-item h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.timeline-item p {
    color: var(--text-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    /* height: 600px; */
    min-height: 500px;
    transform-style: preserve-3d;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.project-card:hover .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.project-card-back {
    transform: rotateY(180deg);
    background: var(--bg-accent);
}

.project-img {
    width: 100%;
    height: 40%;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 5/1;
}

.project-card h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    color: var(--accent-1);
    text-align: center;
}

.project-card p {
    color: var(--text-secondary);
    /* text-align: center; */
}

.project-card .btn {
    margin-top: 15px;
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Skills & Certificates Section */
.skills-certificates {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a35 100%);
    position: relative;
    overflow: hidden;
}

.sc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.sc-header {
    text-align: center;
    margin-bottom: 60px;
}

.sc-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-1);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

.sc-header p {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.sc-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(0, 247, 255, 0.3);
    padding-bottom: 10px;
}

.sc-tab {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    padding: 10px 25px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.sc-tab::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-1);
    transition: width 0.3s ease;
}

.sc-tab:hover {
    color: var(--text-primary);
}

.sc-tab.active {
    color: var(--accent-1);
}

.sc-tab.active::after {
    width: 100%;
}

.sc-content {
    min-height: 500px;
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.skill-card {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.2);
    border-color: rgba(0, 247, 255, 0.4);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--accent-1);
    margin-bottom: 15px;
}

.skill-card h3 {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.skill-card p {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Certificates Grid */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.certificate-card {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 247, 255, 0.3);
    border-color: rgba(0, 247, 255, 0.4);
}

.certificate-img {
    height: auto;
    overflow: hidden;
    position: relative;
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-img img {
    transform: scale(1.05);
}

.certificate-content {
    padding: 20px;
}

.certificate-content h3 {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.certificate-content p {
    font-family: 'Exo 2', sans-serif;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.certificate-issuer {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.issuer-icon {
    width: 30px;
    height: 30px;
    background: rgba(0, 247, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.issuer-icon i {
    color: var(--accent-1);
    font-size: 0.9rem;
}

.issuer-name {
    font-family: 'Exo 2', sans-serif;
    color: var(--accent-1);
    font-size: 0.9rem;
}

.certificate-date {
    font-family: 'Exo 2', sans-serif;
    color: #888;
    font-size: 0.8rem;
    display: block;
    margin-top: 10px;
}

.view-certificate {
    display: inline-block;
    padding: 8px 15px;
    background: transparent;
    border: 1px solid var(--accent-1);
    color: var(--accent-1);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.9rem;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 10px;
}

.view-certificate:hover {
    background: var(--accent-1);
    color: var(--bg-primary);
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 50px;
    margin-top: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 2;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-accent);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-size: 1.5rem;
    color: var(--accent-1);
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.2);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: var(--bg-accent);
    border: 1px solid var(--glass-border);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    box-shadow: 0 0 10px var(--accent-1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Chatbot */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-1);
    color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.chatbot-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 247, 255, 0.4);
}

.chatbot-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 450px;
    background: var(--bg-secondary);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.chatbot-header {
    padding: 15px;
    background: var(--accent-1);
    color: var(--bg-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
}

.message {
    margin-bottom: 15px;
    max-width: 80%;
}

.bot-message {
    background: var(--bg-accent);
    padding: 10px 15px;
    border-radius: 15px 15px 15px 0;
    align-self: flex-start;
}

.user-message {
    background: var(--accent-1);
    color: var(--bg-primary);
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    align-self: flex-end;
    margin-left: auto;
}

.chatbot-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid var(--glass-border);
}

.chatbot-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--bg-accent);
    color: var(--text-primary);
}

.chatbot-input button {
    margin-left: 10px;
    background: var(--accent-1);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

/* Footer - Redesigned */
footer {
    background: var(--bg-secondary);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-column h3 {
    color: var(--accent-1);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.footer-column p {
    margin-bottom: 15px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 10px;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px);
    background: var(--accent-1);
    color: var(--bg-primary);
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    opacity: 0.7;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h1 span {
        font-size: 2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-container {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
    }

    .about-text p,
    .container>p,
    .project-card p,
    .certificate-content p {
        text-align: justify;
    }

    .copyright p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 10px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h1 span {
        font-size: 1.6rem;
        min-height: 50px;
    }

    .hero p {
        font-size: 0.9rem;
        text-align: justify;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .sc-tabs {
        flex-direction: column;
        align-items: center;
    }

    .sc-tab {
        margin-bottom: 10px;
    }

    .skills-grid,
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h1 span {
        font-size: 1.3rem;
        min-height: 40px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-right: 10px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .chatbot-window{
        width: auto;
        font-size: 1rem;
    }
}