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

:root {
    /* Portfolio Modern Theme - Dark Blue */
    --background: 250, 250, 250;
    --foreground: 15, 23, 42;
    
    --card: 255, 255, 255;
    --card-foreground: 15, 23, 42;
    
    --popover: 255, 255, 255;
    --popover-foreground: 15, 23, 42;
    
    /* Professional Dark Blue Theme */
    --primary: 210, 100%, 35%;
    --primary-foreground: 255, 255, 255;
    --primary-light: 210, 100%, 45%;
    --primary-dark: 210, 100%, 25%;
    
    --secondary: 220, 14%, 96%;
    --secondary-foreground: 220, 39%, 11%;
    
    --muted: 220, 14%, 96%;
    --muted-foreground: 220, 9%, 46%;
    
    --accent: 210, 100%, 35%;
    --accent-foreground: 255, 255, 255;
    
    --destructive: 0, 84%, 60%;
    --destructive-foreground: 255, 255, 255;
    
    --border: 220, 13%, 91%;
    --input: 220, 13%, 91%;
    --ring: 210, 100%, 35%;
    
    --radius: 0.75rem;
    
    /* Custom Portfolio Colors - Dark Blue */
    --hero-bg: linear-gradient(135deg, hsl(210, 100%, 35%), hsl(220, 100%, 45%));
    --gradient-primary: linear-gradient(135deg, hsl(210, 100%, 35%), hsl(220, 100%, 45%));
    --gradient-secondary: linear-gradient(135deg, hsl(220, 14%, 96%), hsl(220, 14%, 98%));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 40px hsl(210 100% 35% / 0.3);
    
    /* Typography */
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
}

[data-theme="dark"] {
    /* Dark Portfolio Theme - Dark Blue */
    --background: 15, 23, 42;
    --foreground: 250, 250, 250;
    
    --card: 30, 41, 59;
    --card-foreground: 250, 250, 250;
    
    --popover: 30, 41, 59;
    --popover-foreground: 250, 250, 250;
    
    --primary: 210, 100%, 55%;
    --primary-foreground: 15, 23, 42;
    --primary-light: 210, 100%, 65%;
    --primary-dark: 210, 100%, 45%;
    
    --secondary: 30, 41, 59;
    --secondary-foreground: 250, 250, 250;
    
    --muted: 30, 41, 59;
    --muted-foreground: 148, 163, 184;
    
    --accent: 210, 100%, 55%;
    --accent-foreground: 15, 23, 42;
    
    --destructive: 0, 75%, 60%;
    --destructive-foreground: 255, 255, 255;
    
    --border: 30, 41, 59;
    --input: 30, 41, 59;
    --ring: 210, 100%, 55%;
    
    /* Custom Dark Colors - Dark Blue */
    --hero-bg: linear-gradient(135deg, hsl(210, 100%, 55%), hsl(220, 100%, 65%));
    --gradient-primary: linear-gradient(135deg, hsl(210, 100%, 55%), hsl(220, 100%, 65%));
    --gradient-secondary: linear-gradient(135deg, hsl(215, 28%, 17%), hsl(215, 28%, 19%));
    
    /* Dark Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-glow: 0 0 40px hsl(210 100% 55% / 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: rgb(var(--foreground));
    background-color: rgb(var(--background));
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

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

/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(var(--background));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

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

.splash-title {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-mono);
    margin: 0;
}

.text-gradient {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease-in-out infinite;
}

.cursor {
    color: hsl(var(--primary));
    animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
    from, to { opacity: 1; }
    50% { opacity: 0; }
}

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

@media (max-width: 768px) {
    .splash-title {
        font-size: 2rem;
    }
}

/* Main Content */
.main-content {
    min-height: 100vh;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: rgba(var(--background), 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(var(--border), 0.5);
    color: rgb(var(--foreground));
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: rgb(var(--accent));
    color: rgb(var(--accent-foreground));
    transform: scale(1.1);
}

.theme-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    background: rgba(var(--background), 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(var(--border), 0.5);
}

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

.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: rgb(var(--muted-foreground));
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: hsl(var(--primary));
}

@media (max-width: 768px) {
    .nav-list {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

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

.btn-primary:hover {
    background: hsl(var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: rgba(var(--secondary), 0.8);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--primary));
    border: 1px solid hsl(var(--primary));
}

.btn-outline:hover {
    background: hsl(var(--primary));
    color: rgb(var(--primary-foreground));
}

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-bg);
    background-size: 200% 200%;
    animation: gradient-shift 8s ease-in-out infinite;
    position: relative;
    padding: 8rem 1rem 4rem;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    color: white;
}

.hero-title {
    margin-bottom: 2rem;
}

.hero-name {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.scroll-arrow {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.scroll-arrow:hover {
    background: rgba(255, 255, 255, 0.1);
}

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

@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

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

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* About Section */
.about-section {
    background: rgb(var(--secondary), 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-paragraph {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgb(var(--muted-foreground));
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.highlight-card {
    background: rgb(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.highlight-icon {
    width: 3rem;
    height: 3rem;
    background: hsl(var(--primary));
    color: rgb(var(--primary-foreground));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.highlight-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.highlight-description {
    color: rgb(var(--muted-foreground));
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

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

.skill-category {
    background: rgb(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

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

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

.skill-tag {
    background: hsl(var(--primary), 0.1);
    color: hsl(var(--primary));
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.stat-card {
    text-align: center;
    background: rgb(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: hsl(var(--primary));
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgb(var(--muted-foreground));
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    background: rgb(var(--secondary), 0.3);
}

.projects-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.projects-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.projects-grid.featured {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.projects-grid:not(.featured) {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.project-card {
    background: rgb(var(--card));
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

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

.featured-card {
    position: relative;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.project-content {
    padding: 2rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.tech-tag {
    background: rgb(var(--secondary));
    color: rgb(var(--secondary-foreground));
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-image {
    height: 200px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 3rem;
}

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

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary));
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: hsl(var(--primary-dark));
}

.projects-footer {
    text-align: center;
}

@media (max-width: 768px) {
    .projects-grid.featured {
        grid-template-columns: 1fr;
    }
    
    .projects-grid:not(.featured) {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.contact-details h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: rgb(var(--muted-foreground));
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: hsl(var(--primary));
    color: rgb(var(--primary-foreground));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-link {
    color: rgb(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Form Styles */
.contact-form {
    background: rgb(var(--card));
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: rgb(var(--foreground));
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    background: rgb(var(--background));
    color: rgb(var(--foreground));
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgb(var(--border));
    border-radius: var(--radius);
    background: rgb(var(--background));
    color: rgb(var(--foreground));
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

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

.btn-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Footer */
.footer {
    background: rgb(var(--secondary), 0.5);
    border-top: 1px solid rgb(var(--border), 0.5);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-subtitle {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgb(var(--muted-foreground));
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(var(--primary), 0.1);
    color: hsl(var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: hsl(var(--primary));
    color: rgb(var(--primary-foreground));
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: rgb(var(--muted-foreground));
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgb(var(--border), 0.5);
    padding-top: 2rem;
    text-align: center;
    color: rgb(var(--muted-foreground));
    font-size: 0.875rem;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: 400px;
}

.toast {
    background: rgb(var(--card));
    color: rgb(var(--card-foreground));
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
    border-left: 4px solid hsl(var(--primary));
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

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

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .toast-container {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
}

/* Additional responsive styles */
@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        padding: 6rem 1rem 2rem;
    }
}