/* main.css - Part 1: Root Variables and Base Styles */

:root {
    /* Colors */
    --primary-color: #2563EB;
    --secondary-color: #1F2937;
    --accent-color: #3B82F6;
    --text-primary: #1F2937;
    --text-secondary: #4B5563;
    --background-primary: #FFFFFF;
    --background-secondary: #F3F4F6;
    
    /* Transitions */
    --transition-base: all 0.3s ease;
    --transition-smooth: all 0.5s ease-in-out;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-padding {
    padding: 5rem 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition-base);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.primary-button {
    @apply bg-blue-600 text-white px-6 py-3 rounded-md hover:bg-blue-700 
           transition-all duration-300 flex items-center shadow-md 
           hover:shadow-lg transform hover:-translate-y-0.5;
}

.secondary-button {
    @apply bg-gray-800 text-white px-6 py-3 rounded-md hover:bg-gray-900 
           transition-all duration-300 flex items-center shadow-md 
           hover:shadow-lg transform hover:-translate-y-0.5;
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 8s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--background-primary);
    background-image: linear-gradient(to bottom right, var(--background-secondary), var(--background-primary));
    z-index: -1;
}

.content {
    position: relative;
    z-index: 1;
}

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

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}
/* Part 2: Navigation and Hero Styles */

/* Navigation Styles */
.nav-link {
    @apply text-gray-700 hover:text-blue-600 transition-colors;
    position: relative;
}

.nav-link.active {
    @apply text-blue-600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.nav-link.active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.mobile-nav-link {
    @apply block px-3 py-2 text-gray-700 hover:text-blue-600 transition-colors;
}

.mobile-contact-button {
    @apply block px-3 py-2 text-blue-600 font-medium hover:bg-blue-50 rounded-md transition-colors;
}

.navbar {
    @apply fixed top-0 left-0 right-0 z-50 transition-all duration-300;
}

.navbar.scrolled {
    @apply bg-white/90 backdrop-blur-md shadow-md;
}

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

.hero-content {
    position: relative;
    z-index: 2;
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animation Delays */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Typing Animation */
.typing-animation {
    border-right: 3px solid transparent;
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #2563EB }
}

/* Scroll Animations */
.scroll-indicator {
    animation: bounce 2s infinite;
}

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

/* Mobile Menu Animation */
.menu-icon, 
.close-icon {
    transition: opacity 0.3s ease-in-out;
}

.mobile-menu {
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.mobile-menu.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.mobile-menu:not(.hidden) {
    transform: translateY(0);
    opacity: 1;
}

/* Backdrop Blur */
.backdrop-blur-md {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Social Links */
.social-link {
    @apply text-gray-600 hover:text-blue-600 transition-colors duration-300 
           transform hover:-translate-y-1;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 6rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons a {
        width: 100%;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .mobile-menu {
        @apply fixed top-0 left-0 right-0 bg-white shadow-lg;
    }
}

/* Scroll Bar Styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: white;
}
/* Part 3: Experience and Projects Sections */

/* Experience Section Styles */
.experience-card {
    @apply relative;
    transform: translateY(0);
    transition: var(--transition-base);
}

.experience-card:hover {
    transform: translateY(-5px);
}

/* Timeline Connector Styles */
.experience-card::before {
    @apply hidden md:block absolute top-1/2 w-5 h-5 rounded-full bg-blue-600 
           transform -translate-y-1/2 left-1/2 -translate-x-1/2 z-10;
    content: '';
}

.experience-card::after {
    @apply hidden md:block absolute top-1/2 w-3 h-3 rounded-full bg-white 
           transform -translate-y-1/2 left-1/2 -translate-x-1/2 z-20;
    content: '';
}

/* Alternating Layout */
.experience-card:nth-child(odd) {
    @apply md:pr-12;
}

.experience-card:nth-child(even) {
    @apply md:pl-12;
}

/* Experience List Styling */
.experience-list {
    @apply space-y-4;
}

.experience-item {
    @apply relative pl-6;
}

.experience-item::before {
    content: '•';
    @apply absolute left-0 text-blue-600 font-bold;
}

/* Current Position Indicator Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.text-blue-600.bg-blue-100 {
    animation: pulse 2s infinite;
}

/* Projects Section Styles */
.carousel-container {
    position: relative;
    padding: 0 60px;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
}

/* Carousel Navigation */
.carousel-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.carousel-nav-button:hover:not(:disabled) {
    box-shadow: var(--shadow-lg);
    transform: translateY(-50%) scale(1.05);
}

.carousel-nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-nav-button.left-0 { left: 0; }
.carousel-nav-button.right-0 { right: 0; }

/* Carousel Track */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
    opacity: 0;
}

.carousel-track.loaded {
    opacity: 1;
}

/* Project Cards */
.project-card {
    flex: 0 0 100%; /* Default to full width */
    max-width: calc(100% - 1rem); /* Account for gap */
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    overflow: hidden;
    opacity: 0;
}

.project-card.visible {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-content {
    padding: 2rem;
}

/* Project Header */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Project Links */
.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--text-secondary);
    transition: var(--transition-base);
    position: relative;
}

.project-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Tech Stack Tags */
.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: #EFF6FF;
    color: var(--primary-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: var(--transition-base);
}

.tech-tag:hover {
    background: #DBEAFE;
    transform: scale(1.05);
}

/* Pagination Dots */
.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #E5E7EB;
    transition: var(--transition-base);
    cursor: pointer;
}

.pagination-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* Tooltips */
.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
    background: var(--secondary-color);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.project-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}
/* For larger screens */
@media (min-width: 1024px) {
    .project-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .project-card {
        flex: 0 0 calc(100% - 1rem);
    }
}

@media (max-width: 768px) {
    .carousel-container {
        padding: 0 20px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.25rem;
    }

    .experience-card::before,
    .experience-card::after {
        display: none;
    }

    .experience-card {
        @apply px-0 mb-8;
    }
}
/* Part 4: Skills, Contact, and Footer Sections */

/* Skills Section Styles */
.skill-category {
    transition: var(--transition-base);
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.skill-category:hover .bg-white {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Skill Tags */
.skill-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    margin: 0.25rem;
    background-color: #EFF6FF;
    color: var(--primary-color);
    border-radius: 9999px;
    font-size: 0.875rem;
    transition: var(--transition-base);
    cursor: default;
}

.skill-tag:hover {
    background-color: #DBEAFE;
    transform: scale(1.05);
}

/* Skill Level Indicator */
.skill-level {
    height: 4px;
    background-color: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 0.25rem;
}

.skill-level-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
    transition: width 1s ease-in-out;
}

/* Contact Section Styles */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group label {
    transition: var(--transition-base);
}

.form-group:focus-within label {
    color: var(--primary-color);
}

/* Contact Info Cards */
.contact-info-card {
    transition: var(--transition-base);
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Icon Containers */
.icon-container {
    transition: var(--transition-base);
}

.icon-container:hover {
    background-color: #DBEAFE;
    transform: scale(1.1);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transform: translateY(100%);
    opacity: 0;
    transition: var(--transition-base);
    z-index: 50;
}

.toast.slide-in {
    transform: translateY(0);
    opacity: 1;
}

.toast-success {
    background-color: #DEF7EC;
    border-left: 4px solid #0E9F6E;
}

.toast-error {
    background-color: #FDE8E8;
    border-left: 4px solid #F05252;
}

/* Footer Styles */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-social-link {
    @apply text-gray-400 hover:text-white transition-colors duration-300 
           transform hover:-translate-y-1;
    display: inline-flex;
    padding: 0.5rem;
}

.footer-link {
    @apply text-gray-400 hover:text-white transition-colors duration-300;
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--primary-color);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-base);
    opacity: 0;
    visibility: hidden;
    z-index: 40;
}

#scrollToTop.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#scrollToTop:hover {
    transform: translateY(-5px);
    background-color: var(--accent-color);
}

/* Animation for Social Icons */
.footer-social-link i {
    transition: transform 0.3s ease;
}

.footer-social-link:hover i {
    transform: scale(1.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .skill-category {
        margin-bottom: 1.5rem;
    }

    .skill-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .contact-info-card {
        margin-bottom: 1rem;
    }

    .footer .grid-cols-1 {
        row-gap: 2rem;
    }
}

/* Loading States */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Form Validation Styles */
.form-input.error,
.form-textarea.error {
    border-color: #F05252;
}

.error-message {
    color: #F05252;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.success-message {
    color: #0E9F6E;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
/* Icon Styles */

/* General Icon Styles */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Icon Containers */
.icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #EFF6FF;
    transition: var(--transition-base);
}

.icon-container:hover {
    background-color: #DBEAFE;
    transform: scale(1.1);
}

/* Icon Sizes */
.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 24px;
    height: 24px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* Icon Colors */
.icon-primary {
    color: var(--primary-color);
}

.icon-secondary {
    color: var(--secondary-color);
}

.icon-accent {
    color: var(--accent-color);
}

.icon-light {
    color: #ffffff;
}

/* Social Icons */
.social-icon {
    width: 20px;
    height: 20px;
    transition: var(--transition-base);
}

.social-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-base);
}

.social-icon-container:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Navigation Icons */
.nav-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Project Icons */
.project-icon {
    width: 20px;
    height: 20px;
}

/* Animated Icons */
.icon-spin {
    animation: spin 1s linear infinite;
}

.icon-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Icon Animations */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

/* Mobile Menu Icons */
.menu-icon,
.close-icon {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Skill Category Icons */
.skill-icon {
    width: 32px;
    height: 32px;
    color: var(--primary-color);
}

.skill-icon-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #EFF6FF;
    margin-bottom: 1rem;
    transition: var(--transition-base);
}

.skill-icon-container:hover {
    background-color: #DBEAFE;
    transform: scale(1.1);
}

/* Contact Form Icons */
.form-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 12px;
    color: var(--text-secondary);
}

/* Loading Spinner Icon */
.spinner-icon {
    animation: spin 1s linear infinite;
    color: var(--primary-color);
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
.tab-button {
    color: #4B5563;
}

.tab-button.active {
    background-color: white;
    color: #2563EB;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-pane {
    transition: all 0.3s ease-in-out;
    opacity: 0;
    display: none;
}

.tab-pane.active {
    opacity: 1;
    display: block;
}