/* Base Styles */
:root {
    --primary-color: #37e1bc;
    --secondary-color: #4f46e5;
    --accent-color: #eff546;
    --dark-bg: #131314;
    --dark-bg-light: #1e1e1f;
    --light-text: #ffffff;
    --light-text-secondary: #e0e0e0;
    --gray-text: #7b7b7b;
    --card-bg: rgba(30, 30, 31, 0.7);
    --card-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header */
header {
    background-color: rgba(19, 19, 20, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--light-text);
    letter-spacing: 1px;
}

.navbar-toggler {
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: var(--light-text-secondary);
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--light-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.btn-contact {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 0.5rem;
}

.btn-contact:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(55, 225, 188, 0.3);
}

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

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(55, 225, 188, 0.1) 0%, rgba(19, 19, 20, 0) 70%);
    z-index: -1;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--light-text), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.1;
}

.location p {
    font-size: 1.2rem;
    color: var(--light-text-secondary);
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.hero-bio {
    font-size: 1.1rem;
    color: var(--light-text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-bio span {
    color: var(--primary-color);
    font-weight: 500;
}

.highlight {
    color: var(--accent-color);
    font-weight: 500;
}

.hero-cta .btn {
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    margin-right: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.hero-cta .btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border: none;
}

.hero-cta .btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(55, 225, 188, 0.3);
}

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

.hero-cta .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.hero-model {
    position: relative;
    width: 150%;
    height: 150%;
}

spline-viewer {
    width: 100%;
    height: 100%;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light-text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    animation: bounce 2s infinite;
}

.scroll-down span {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.scroll-down i {
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}

/* Section Styling */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--light-text), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-header p {
    color: var(--light-text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 6rem 0;
    background-color: var(--dark-bg-light);
    position: relative;
}

.about-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    /* text-align: center; */
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(55, 225, 188, 0.3);
}

.card-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--dark-bg);
    font-size: 0.8rem;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.education-item {
    margin-bottom: 2rem;
}

.edu-logo {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.edu-logo img {
    height: 60px;
    object-fit: contain;
    background-color: white;
    padding: 0.5rem;
    border-radius: 8px;
/* align-items: center; */
}

.edu-details small {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.edu-details h4 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--light-text);
}

.edu-details p {
    color: var(--light-text-secondary);
    font-size: 0.95rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-category h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: var(--light-text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.2rem;
}

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

.experience-item small {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.experience-item h4 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: var(--light-text);
}

.experience-item .company {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.experience-item ul {
    margin-left: 1.2rem;
    color: var(--light-text-secondary);
}

.experience-item li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.passion-quote {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: rgba(55, 225, 188, 0.1);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
}

.passion-quote blockquote {
    font-style: italic;
    color: var(--light-text-secondary);
    margin: 0;
}

/* Projects Section */
.projects-section {
    padding: 6rem 0;
    position: relative;
}

.project-item {
    margin-bottom: 6rem;
}

.project-info h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.project-info h3 span {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.project-info p {
    color: var(--light-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tech-used span {
    background-color: rgba(55, 225, 188, 0.1);
    color: var(--primary-color);
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

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

.project-links .btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.project-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-image img {
    display: block;
    transition: transform 0.5s ease;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(55, 225, 188, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-btn {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

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

/* Certificates Section */
.certificates-section {
    padding: 6rem 0;
    background-color: var(--dark-bg-light);
}

.certificates-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.certificates-slider::-webkit-scrollbar {
    height: 8px;
}

.certificates-slider::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.certificates-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.certificate-item {
    min-width: 300px;
    scroll-snap-align: start;
    background-color: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.certificate-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.certificate-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--card-border);
}

.certificate-info {
    padding: 1.5rem;
}

.certificate-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.certificate-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.certificate-info small {
    color: var(--gray-text);
    font-size: 0.85rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    position: relative;
}

.contact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-info {
    padding: 2rem;
    height: 100%;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

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

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(55, 225, 188, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-item p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-item a, .contact-item span {
    color: var(--light-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-social {
    margin-top: 3rem;
}

.contact-social p {
    color: var(--gray-text);
    margin-bottom: 1rem;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}


/* Footer */
footer {
    background-color: #0f0f10;
    padding: 3rem 0;
    color: var(--light-text-secondary);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-logo span:first-child {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
    color: var(--dark-bg);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--light-text-secondary);
    transition: color 0.3s ease;
}

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

.footer-copyright {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(55, 225, 188, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 1199.98px) {
    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding: 7rem 0 4rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
     .hero::before {
        top: -30%;
        right: -50%;
        width: 200%;
        height: 160%;
    }
    
    .hero-model {
        height: 350px;
        margin-top: 3rem;
        margin-left: auto;
        margin-right: auto;
    }

    spline-viewer {
        max-width: 400px;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 6rem 0 3rem;
        text-align: center;
    }

    .hero::before {
        top: -20%;
        right: -70%;
        width: 250%;
        height: 140%;
    }
    
    .hero-model {
        height: 300px;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .hero-bio {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .project-info {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .tech-used, .project-links {
        justify-content: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero::before {
        top: -10%;
        right: -100%;
        width: 300%;
        height: 120%;
    }

    .hero-model{
        margin-top: 0rem;
        margin-bottom: 3rem;
    }
    
    spline-viewer {
     max-width: 75%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about-card, .contact-card {
        padding: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Animation Classes */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition-property: opacity, transform;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-down"] {
    opacity: 0;
    transform: translateY(-30px);
    transition-property: opacity, transform;
}

[data-aos="fade-down"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

[data-aos="fade-right"] {
    opacity: 0;
    transform: translateX(-30px);
    transition-property: opacity, transform;
}

[data-aos="fade-right"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="fade-left"] {
    opacity: 0;
    transform: translateX(30px);
    transition-property: opacity, transform;
}

[data-aos="fade-left"].aos-animate {
    opacity: 1;
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    opacity: 0;
    transform: scale(0.9);
    transition-property: opacity, transform;
}

[data-aos="zoom-in"].aos-animate {
    opacity: 1;
    transform: scale(1);
}