    :root {
        --gradient: linear-gradient(90deg, #ff00cc, #3333ff, #00ffff);
        --dark-bg: #0d0d0d;
        --light-bg: #f9f9f9;
        --dark-text: #ffffff;
        --light-text: #111111;
        --highlight: #00ffff;
        --card-bg: rgba(255, 255, 255, 0.05);
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    /* Fullscreen preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0d0d;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Centered preloader content */
.preloader-content {
  position: relative;
  width: 150px;
  height: 150px;
}

/* Static centered name */
.name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.name h1 {
  font-size: 20px;
  font-weight: bold;
  background:  var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 2px;
  margin: 0;
  padding: 0;
  text-align: center;
  counter-reset: var(--gradient);
}

/* Rotating border */
.rotating-circle {
  width: 160px;
  height: 160px;
  border: 4px solid transparent;
  border-top: 4px solid #ff00cc;
  border-bottom: 4px solid #3333ff;
  border-right: 4px solid #00ffff;
  border-radius: 50%;
  animation: spin 2s linear infinite;
  z-index: 1;
}

@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


    body {
        font-family: 'Segoe UI', sans-serif;
        background: var(--dark-bg);
        color: var(--dark-text);
        transition: background 0.4s ease, color 0.4s ease;
    }

    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.05);
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
    }

    .logo {
        font-size: 1.8rem;
        font-weight: bold;
        background: var(--gradient);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        animation: textGlow 4s linear infinite;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    @keyframes textGlow {
        0% {
            background-position: 0% center;
        }

        100% {
            background-position: 200% center;
        }
    }

    .nav-links {
        display: flex;
        gap: 2rem;
        align-items: center;
        transition: right 0.4s ease;
    }

    .nav-links a {
        color: inherit;
        text-decoration: none;
        position: relative;
        font-weight: 500;
        transition: 0.3s ease;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--highlight);
        transition: width 0.4s ease;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

    .nav-links a:hover {
        color: var(--highlight);
    }

    .toggle-mode {
        cursor: pointer;
        font-size: 1.5rem;
        margin-left: 1rem;
        transition: transform 0.3s ease;
    }

    .toggle-mode:hover {
        transform: rotate(30deg);
    }

    .menu-toggle {
        display: none;
        flex-direction: column;
        cursor: pointer;
        gap: 5px;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--highlight);
        transition: 0.3s ease;
    }

    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    section {
        padding: 5rem 0;
    }

    .container {
        max-width: 1100px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    h2.section-title {
        font-size: 2.2rem;
        background: var(--gradient);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        text-align: center;
        margin-bottom: 2rem;
        position: relative;
        display: inline-block;
        width: 100%;
    }

    h2.section-title::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background: var(--gradient);
        border-radius: 3px;
    }

    .project-grid,
    .skills-grid,
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .card {
        background: var(--card-bg);
        padding: 1.5rem;
        border-radius: 15px;
        transition: 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 255, 255, 0.4);
        border-color: var(--highlight);
    }

    .card h3 {
        color: var(--highlight);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .card h3 i {
        font-size: 1.2rem;
    }

    .card p {
        color: #ccc;
        line-height: 1.6;
    }

    .skills-grid .card {
        text-align: center;
    }

    .skill-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        color: var(--highlight);
    }

    .contact-section {
        text-align: center;
    }

    .contact-section p {
        margin: 1rem 0;
        font-size: 1.1rem;
        color: #ccc;
    }

    .about-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 3rem;
        flex-wrap: wrap;
    }

    .btn-glow {
        display: inline-block;
        margin-top: 1.5rem;
        padding: 12px 30px;
        border-radius: 25px;
        background: var(--gradient);
        color: #fff;
        font-weight: 600;
        text-decoration: none;
        transition: 0.3s ease;
        box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
        border: none;
        cursor: pointer;
        font-size: 1rem;
        position: relative;
        overflow: hidden;
    }

    .btn-glow::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }

    .btn-glow:hover::before {
        left: 100%;
    }

    .btn-glow:hover {
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    }

    .about-text {
        flex: 1 1 400px;
    }

    .about-text h2 {
        font-size: 2.5rem;
        background: var(--gradient);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        margin-bottom: 1rem;
    }

    .about-text p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: inherit;
        margin-bottom: 1rem;
    }

    .about-image {
        flex: 1 1 300px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-image img {
        max-width: 300px;
        width: 100%;
        border-radius: 20px;
        border: 3px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .about-image img:hover {
        transform: scale(1.05);
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    }

    /* Experience Section */
    .timeline {
        position: relative;
        max-width: 800px;
        margin: 0 auto;
        padding: 20px 0;
    }

    .timeline::after {
        content: '';
        position: absolute;
        width: 3px;
        background: var(--highlight);
        top: 0;
        bottom: 0;
        left: 50%;
        margin-left: -1.5px;
    }

    .timeline-item {
        padding: 10px 40px;
        position: relative;
        width: 50%;
        box-sizing: border-box;
    }

    .timeline-item::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 20px;
        background: var(--highlight);
        border-radius: 50%;
        top: 15px;
        z-index: 1;
    }

    .left {
        left: 0;
    }

    .right {
        left: 50%;
    }

    .left::after {
        right: -10px;
    }

    .right::after {
        left: -10px;
    }

    .timeline-content {
        padding: 20px;
        background: var(--card-bg);
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .timeline-content h3 {
        color: var(--highlight);
        margin-bottom: 10px;
    }

    .timeline-content p {
        color: #ccc;
        line-height: 1.6;
    }

    .timeline-date {
        color: var(--highlight);
        font-weight: bold;
        margin-bottom: 5px;
    }

    /* Contact Form */
    .contact-form {
        max-width: 600px;
        margin: 0 auto;
        padding: 2rem;
        background: var(--card-bg);
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: var(--highlight);
    }

    .form-control {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(255, 255, 255, 0.05);
        color: var(--dark-text);
        font-size: 1rem;
        transition: border 0.3s ease;
    }

    .form-control:focus {
        outline: none;
        border-color: var(--highlight);
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    }

    textarea.form-control {
        min-height: 150px;
        resize: vertical;
    }

    /* Social Links */
    .social-links {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--card-bg);
        color: var(--highlight);
        font-size: 1.5rem;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-link:hover {
        background: var(--highlight);
        color: var(--dark-bg);
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
    }

    /* Footer */
    footer {
        background: rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        text-align: center;
        margin-top: 3rem;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .footer-links {
        display: flex;
        gap: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-links a {
        color: var(--highlight);
        text-decoration: none;
        transition: 0.3s ease;
    }

    .footer-links a:hover {
        text-decoration: underline;
    }

    .copyright {
        color: #ccc;
        font-size: 0.9rem;
    }

    /* Back to Top Button */
    .back-to-top {
        position: fixed;
        bottom: 30px;
        right: 30px;
        width: 50px;
        height: 50px;
        background: var(--gradient);
        color: white;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.2rem;
        text-decoration: none;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .back-to-top.active {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
    }

    /* Testimonials */
    .testimonials-container {
        display: flex;
        gap: 2rem;
        overflow-x: auto;
        padding: 1rem 0;
        scroll-snap-type: x mandatory;
    }

    .testimonial-card {
        min-width: 300px;
        scroll-snap-align: start;
        background: var(--card-bg);
        padding: 1.5rem;
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
    }

    .testimonial-content {
        margin-bottom: 1rem;
        font-style: italic;
        color: #ccc;
    }

    .testimonial-author {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--highlight);
    }

    .author-info h4 {
        color: var(--highlight);
        margin-bottom: 0.2rem;
    }

    .author-info p {
        color: #aaa;
        font-size: 0.9rem;
    }

    /* Services Section */
    .service-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .service-icon {
        font-size: 2.5rem;
        color: var(--highlight);
        margin-bottom: 1rem;
    }

    /* Responsive Styles */
    @media (max-width: 768px) {
        .menu-toggle {
            display: flex;
        }

        .nav-links {
            position: fixed;
            top: 70px;
            right: -100%;
            width: 75%;
            height: calc(100vh - 70px);
            flex-direction: column;
            justify-content: flex-start;
            padding-top: 2rem;
            background: rgba(0, 0, 0, 0.9);
            backdrop-filter: blur(10px);
            padding-left: 2rem;
            transition: right 0.3s ease;
        }

        .nav-links.show {
            right: 0;
        }

        .about-container {
            flex-direction: column;
            text-align: center;
        }

        .about-text {
            padding-bottom: 2rem;
        }

        nav .toggle-mode {
            position: absolute;
            top: 20px;
            right: 70px;
        }

        .timeline::after {
            left: 31px;
        }

        .timeline-item {
            width: 100%;
            padding-left: 70px;
            padding-right: 25px;
        }

        .timeline-item::after {
            left: 21px;
        }

        .left::after,
        .right::after {
            left: 21px;
        }

        .right {
            left: 0;
        }
    }
