/* 
   Modern Portfolio Design System
   Theme: Deep Space (Premium Dark)
*/

:root {
    /* Colors */
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --primary: #38bdf8;
    /* Sky 400 */
    --secondary: #818cf8;
    /* Indigo 400 */
    --accent: #2dd4bf;
    /* Teal 400 */
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.6) 100%);

    /* Language Button */
    --lang-btn-bg: rgba(56, 189, 248, 0.1);
    --lang-btn-text: #38bdf8;
    --lang-btn-border: rgba(56, 189, 248, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --glow: 0 0 20px rgba(56, 189, 248, 0.15);

    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

section {
    padding: 5rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    /* Changed from inline-block to block for better centering */
    width: 100%;
}

p {
    color: var(--text-muted);
}

/* Utility Components */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-hero);
    color: #fff;
    box-shadow: var(--shadow-lg);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
}

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

.btn-outline:hover {
    background: rgba(56, 189, 248, 0.1);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    backdrop-filter: blur(10px);
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    position: relative;
}

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

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Language Button Styles */
.btn-lang {
    background: var(--lang-btn-bg);
    border: 1px solid var(--lang-btn-border);
    color: var(--lang-btn-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
}

.btn-lang:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.btn-lang .fa-globe {
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.about-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Experience (Timeline) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-item {
    padding-left: 2rem;
    padding-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 600;
}

.timeline-title {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(300px, 400px));
    gap: 2rem;
    justify-content: center;
    /* Center the entire grid */
}

.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
    width: 100%;
    max-width: 400px;
    /* Prevent cards from stretching too wide */
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow);
    border-color: var(--primary);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #0f172a;
    /* Placeholder bg */
}

.project-info {
    padding: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    font-size: 0.75rem;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

/* Skills */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.skill-badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.skill-badge:hover {
    border-color: var(--secondary);
    background: rgba(129, 140, 248, 0.1);
}

/* Skill Icon Colors */
.skill-sql {
    color: #e11d48;
}

/* Red */
.skill-powerbi {
    color: #f59e0b;
}

/* Amber */
.skill-python {
    color: #3b82f6;
}

/* Blue */
.skill-js {
    color: #eab308;
}

/* Yellow */
.skill-excel {
    color: #16a34a;
}

/* Green */
.skill-metabase {
    color: #0ea5e9;
}

/* Sky Blue */
.skill-tableau {
    color: #f97316;
}

/* Orange */
.skill-git {
    color: #f43f5e;
}

/* Rose */
.skill-lang {
    color: #8b5cf6;
}

/* Violet */

.skill-android {
    color: #3ddc84;
}

/* Android Green */
.skill-react {
    color: #61dafb;
}

/* React Cyan */
.skill-cs {
    color: #9b59b6;
}

/* C# Purple */

/* Contact */
.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    font-size: 1.5rem;
}

.contact-links a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 5rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .timeline::before {
        left: -10px;
        /* Adjust if needed for design */
        display: none;
        /* Simplify execution for now, or keep */
    }

    /* Re-enabling timeline line for mobile but maybe simplified */
    .timeline::before {
        display: block;
    }

    /* Make projects grid single column on mobile */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid .project-card:nth-child(4):last-child {
        grid-column: 1;
    }
}

/* Image Interaction & Modal */
.project-img {
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:active .project-img {
    transform: scale(0.95);
}

.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.image-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid var(--border);
}

.image-modal-overlay.active .image-modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* Long press indicator */
.holding-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(56, 189, 248, 0.3);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.holding-indicator.active {
    opacity: 1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}