/* Main CSS for AI/ML Portfolio */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #6e44ff;
    --secondary-color: #eb2f64;
    --dark-color: #121212;
    --dark-color-light: #1e1e1e;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #28a745;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6e44ff 0%, #eb2f64 100%);
    --gradient-dark: linear-gradient(135deg, #121212 0%, #2d2d2d 100%);
    
    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Poppins', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 15px 30px rgba(0, 0, 0, 0.2);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--light-color);
    background-color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

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

ul {
    list-style: none;
}

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

button, .btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-primary);
    transition: all var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

section {
    padding: 6rem 2rem;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: all 0.2s ease-out;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-normal);
}

.navbar.scrolled {
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.logo a {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--light-color);
}

.nav-links ul {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-primary);
    font-weight: 500;
    position: relative;
}

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

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

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--light-color);
    margin: 5px;
    transition: all 0.3s ease;
} 

/* Responsive Navigation Styles */
@media screen and (max-width: 1024px) {
    .navbar {
        padding: 1rem 2rem;
        position: fixed;
        z-index: 1000;
        background-color: var(--dark-color);
        width: 100%;
        transition: all 0.3s ease;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--dark-color-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: all 0.5s ease-in-out;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .nav-links ul li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s ease;
    }

    .nav-links ul li a {
        font-size: 2rem;
        font-weight: 600;
        position: relative;
        display: inline-block;
        transition: color 0.3s ease;
    }

    .nav-links ul li a::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        width: 0;
        height: 3px;
        background: var(--gradient-primary);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

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

    .burger {
        display: block;
        cursor: pointer;
        z-index: 1001;
        position: relative;
    }

    .burger div {
        width: 25px;
        height: 3px;
        background-color: var(--light-color);
        margin: 5px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    .burger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .burger.active .line2 {
        opacity: 0;
    }

    .burger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Animated Menu Item Entrance */
    .nav-links.active ul li:nth-child(1) {
        animation: slideIn 0.5s ease forwards 0.1s;
    }

    .nav-links.active ul li:nth-child(2) {
        animation: slideIn 0.5s ease forwards 0.2s;
    }

    .nav-links.active ul li:nth-child(3) {
        animation: slideIn 0.5s ease forwards 0.3s;
    }

    .nav-links.active ul li:nth-child(4) {
        animation: slideIn 0.5s ease forwards 0.4s;
    }

    @keyframes slideIn {
        0% {
            opacity: 0;
            transform: translateX(50px);
        }
        100% {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* Additional Mobile Responsiveness */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem 1rem;
    }

    .nav-links ul li a {
        font-size: 1.8rem;
    }

    
}

@media screen and (max-width: 480px) {
/* 
    .profile-floating-icons {
        margin-left: -45px;
    }
    .image-frame {

        width: 293px;
    } */
    .profile-image-container {
        margin-left: -30px;
    }
}

@media screen and (max-width: 489px) {
    body {
        width: 100vw; /* Ensures the body takes full viewport width */
        overflow-x: hidden; /* Prevents horizontal scrolling */
    }
}




/* Hero Section */
.hero {
    height: 80.5vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    margin-left: 150px;
}
.hero-3d-model {
    flex: 1;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#brain-model {
    /* width: 100%; */
    height: 100%;
    overflow: hidden; /* Prevents overflow during animation */
    display: flex;
    align-items: center;
    justify-content: center;
}

#brain-model img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the full area */
    transition: transform 0.5s ease-in-out;
}

/* Hover Animation: Enlarges and slightly rotates */
#brain-model img:hover {
    transform: scale(1.1) rotate(2deg);
}

.typing-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    display: inline-block;
    position: relative;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(110, 68, 255, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(110, 68, 255, 0.6);
}

.btn.secondary {
    background: transparent;
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

.btn.secondary:hover {
    background: rgba(110, 68, 255, 0.1);
    transform: translateY(-3px);
}

/* Expertise Section */
.expertise {
    background-color: var(--dark-color-light);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: var(--dark-color);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(110, 68, 255, 0.1);
    border-radius: 50%;
}


/* Skills Section */
.skills {
    background-color: var(--dark-color);
}

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

.skill-group h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.skill-group h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.skill {
    margin-bottom: 1.5rem;
}

.skill span {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    position: relative;
    transition: width 1.5s ease-in-out;
}

.progress::after {
    content: attr(data-value);
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Call to Action */
.cta {
    background: var(--gradient-dark);
    text-align: center;
    padding: 5rem 2rem;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    margin-bottom: 1.5rem;
}

.cta p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--dark-color-light);
    padding: 4rem 2rem 1rem;
}

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

.footer-logo h3 {
    font-size: 1.8rem;
}

.footer-logo p {
    opacity: 0.7;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}
/* Contact Page Specific Styles */

/* Page Header */
.page-header {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient-dark);
    position: relative;
    margin-top: 80px;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Section */
.contact-section {
    background-color: var(--dark-color);
    padding: 6rem 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info {
    padding-right: 2rem;
}

.contact-details {
    margin: 3rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(110, 68, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.social-connect h3 {
    margin-bottom: 1.5rem;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    color: var(--light-color);
    font-size: 1.2rem;
}

.social-icon:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Contact Form */
.contact-form-container {
    background-color: var(--dark-color-light);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-header {
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-control {
    display: flex;
    flex-direction: column;
}

.form-control label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control input,
.form-control textarea {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: var(--radius-md);
    color: var(--light-color);
    font-family: var(--font-secondary);
    resize: none;
    transition: border-color var(--transition-normal);
}

.form-control input:focus,
.form-control textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.08);
}

.form-submit {
    margin-top: 1rem;
}

.form-submit .btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
}

.form-submit .btn i {
    transition: transform var(--transition-normal);
}

.form-submit .btn:hover i {
    transform: translateX(5px);
}

/* Map Section */
.map-section {
    height: 500px;
    position: relative;
}

#map-container {
    width: 100%;
    height: 100%;
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-content {
    text-align: center;
}

.map-content i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--dark-color-light);
    padding: 6rem 2rem;
}

.faq-container {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    background-color: var(--dark-color);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.faq-toggle {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-toggle i {
    transform: rotate(45deg);
}

/* Media Queries for Responsive Design */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;

    }
    
    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
    
    .input-group {
        grid-template-columns: 1fr;
    }
    
    .contact-form-container {
        padding: 0.5rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        height: 30vh;
    }
    
    .contact-item {
        flex-direction: column;
    }
    
    .icon-box {
        margin-bottom: 1rem;
    }
}



.form-message {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-message.success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.form-message.error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.message-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.message-content i {
    font-size: 1.5rem;
}

.message-content p {
    margin-bottom: 0;
}

.form-message.success i {
    color: var(--success-color);
}

.form-message.error i {
    color: #dc3545;
}

.close-message {
    background: none;
    border: none;
    color: var(--light-color);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.close-message:hover {
    opacity: 1;
}

@media (max-width: 992px) {
    .hero-content {
      margin-bottom: 2rem;
      max-width: 100%;
      margin-left: 0px;
    }
  }

  .timeline-date {
    margin-left: 34px;
  }

