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

:root {
    /* Light Mode Colors (HSL) */
    --background: hsl(0, 0%, 100%);
    --foreground: hsl(222, 47%, 11%);
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(222, 47%, 11%);
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 40%, 96%);
    --secondary-foreground: hsl(222, 47%, 11%);
    --muted: hsl(210, 40%, 96%);
    --muted-foreground: hsl(215, 16%, 47%);
    --accent: hsl(262, 83%, 58%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(214, 32%, 91%);
    --input: hsl(214, 32%, 91%);
    --ring: hsl(217, 91%, 60%);
    
    /* Custom Tokens */
    --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 60%), hsl(262, 83%, 58%));
    --gradient-hero: linear-gradient(180deg, hsl(0, 0%, 100%), hsl(217, 91%, 95%));
    --shadow-glow: 0 0 40px hsl(217, 91%, 60%, 0.3);
    --shadow-card: 0 10px 30px -10px hsl(222, 47%, 11%, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark-mode {
    /* Dark Mode Colors (HSL) */
    --background: hsl(222, 47%, 6%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(222, 47%, 8%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(217, 91%, 60%);
    --primary-foreground: hsl(222, 47%, 6%);
    --secondary: hsl(217, 33%, 14%);
    --secondary-foreground: hsl(210, 40%, 98%);
    --muted: hsl(217, 33%, 14%);
    --muted-foreground: hsl(215, 20%, 65%);
    --accent: hsl(262, 83%, 58%);
    --accent-foreground: hsl(0, 0%, 100%);
    --border: hsl(217, 33%, 14%);
    --input: hsl(217, 33%, 14%);
    --ring: hsl(217, 91%, 60%);
    
    /* Dark Mode Custom Tokens */
    --gradient-primary: linear-gradient(135deg, hsl(217, 91%, 60%), hsl(262, 83%, 58%));
    --gradient-hero: linear-gradient(180deg, hsl(222, 47%, 6%), hsl(222, 47%, 8%));
    --shadow-glow: 0 0 60px hsl(217, 91%, 60%, 0.2);
    --shadow-card: 0 10px 40px -10px hsl(217, 91%, 60%, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
}

.logo-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--foreground);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
}

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

.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--muted);
}

.dark-mode .sun-icon {
    display: block;
}

.dark-mode .moon-icon {
    display: none;
}

.light-mode .sun-icon {
    display: none;
}

.light-mode .moon-icon {
    display: block;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--foreground);
    transition: var(--transition-smooth);
}


/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: var(--gradient-hero);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge {
    display: inline-block;
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    width: fit-content;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

.stats {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--secondary-foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--muted);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/*Tech stack*/
.tech-stack {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-label {
    font-weight: 600;
    color: var(--muted-foreground);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: var(--secondary);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
} 

.tech-badge:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    cursor: default;
}
/*End of Tech stack*/



/*Start of social links styles*/
.social-links {
    display: flex;
    gap: 25px; 
}

.social-btn {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-decoration: none;
    color: var(--foreground);
    transition: var(--transition-smooth);
    border-radius: 2rem;
}

.social-btn svg {
    background: var(--secondary);
    border-radius: 0.5rem;
    width: 40px;
    height: 40px;
    padding: 8px;
    margin-bottom: 6px;
}

.social-btn span {
    font-size: 12px;
    margin-top: 2px;
    color: var(--primary);
}

.social-btn:hover svg {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: translateY(-2px);
}
/*End of social links styles*/



.hero-profile {
    display: flex;
    justify-content: center;
}

.profile-card {
    position: relative;
}

.profile-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
}

.availability-badge {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
}


/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--muted);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-content {
    display: grid;
    gap: 3rem;
}

.about-text {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.about-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.about-text p {
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-text p:last-child {
    margin-bottom: 0;
}

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

.highlight-card {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition-smooth);
}

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

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.highlight-card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

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

.skill-category-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--secondary);
    color: var(--secondary-foreground);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Projects Section */
.projects-grid {
    display: grid;
    gap: 3rem;
}

.project-card {
    background: var(--card);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

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

.project-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.project-highlights {
    list-style: none;
    margin-bottom: 1.5rem;
}

.project-highlights li {
    color: var(--muted-foreground);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.project-highlights li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1.5rem;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.project-link:hover {
    color: var(--accent);
}

/* Experience Section */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.experience-period {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.experience-badge {
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.experience-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.experience-company {
    color: var(--muted-foreground);
    font-weight: 600;
    margin-bottom: 1rem;
}

.experience-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.experience-achievements {
    list-style: none;
    margin-bottom: 1rem;
}

.experience-achievements li {
    color: var(--muted-foreground);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.experience-achievements li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--foreground);
}

.form-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--background);
    color: var(--foreground);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px hsl(217, 91%, 60%, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
}

.contact-info-item svg {
    flex-shrink: 0;
    color: var(--primary);
}

.contact-info-item h4 {
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    color: var(--muted-foreground);
}

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

.contact-social a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.contact-social a:hover {
    color: var(--accent);
}

/* Footer */
.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-tagline {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

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

.footer-nav a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition-smooth);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-card);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats {
        gap: 1rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .experience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}