/* CSS Reset and CSS Variables */
:root {
    --color-bg: #0a0e17; /* Midnight Blue/Charcoal */
    --color-bg-secondary: rgba(18, 25, 43, 0.6);
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-primary: #0ea5e9; /* Cyan / Bright Blue */
    --color-primary-hover: #0284c7;
    --color-accent: #38bdf8;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --border-radius-lg: 16px;
    --border-radius-sm: 8px;
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

/* Typography elements */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--color-accent);
}

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

/* Background Blobs for Design Aesthetics */
.blob-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, rgba(10,14,23,0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}
.blob-bg-2 {
    top: auto;
    bottom: -10%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, rgba(56,189,248,0.1) 0%, rgba(10,14,23,0) 70%);
}

/* Container */
.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: var(--glass-border);
    transition: background var(--transition-fast);
}

.ticker-container {
    position: fixed;
    top: 68px;
    width: 100%;
    z-index: 1001; /* Ensured it stays above all content and overlaps correctly */
    height: 38px;
    background: #131722; /* TradingView Dark Theme Match */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.nav-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text);
    letter-spacing: -1px;
}
.logo::after {
    content: '.';
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--color-text);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.95rem;
}
.nav-links a:hover {
    color: var(--color-text);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-small {
    display: inline-block;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    padding: 0.8rem 2rem;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
    color: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    padding: 0.8rem 2rem;
    border: var(--glass-border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white;
}

.btn-primary-small {
    background: var(--color-primary);
    color: white;
    padding: 0.5rem 1.2rem;
}
.btn-primary-small:hover {
    background: var(--color-primary-hover);
    color: white;
}

/* Project Social Links */
.project-links-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.social-links-flex {
    display: flex;
    gap: 0.6rem;
    width: 100%;
}

.btn-discord, .btn-telegram {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.6rem;
    border-radius: 30px;
    font-size: 1.2rem;
    color: #ffffff;
    transition: all var(--transition-fast);
}

.btn-discord {
    background: #5865F2;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.2);
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-telegram {
    background: #0088cc;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.2);
}

.btn-telegram:hover {
    background: #0077b5;
    transform: translateY(-2px);
    color: #ffffff;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--color-bg-secondary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.glass-panel > * {
    position: relative;
    z-index: 1;
}
.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 255, 255, 0.08),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 0;
}
.glass-panel:hover::before {
    opacity: 1;
}
.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 5rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.sub-headline {
    color: var(--color-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.headline {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}

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

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-art-container {
    width: 100%;
    max-width: 500px;
    padding: 0.5rem;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
}

.hero-main-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: calc(var(--border-radius-lg) - 8px);
    transition: transform 0.5s ease;
}

.hero-art-container:hover .hero-main-img {
    transform: scale(1.05);
}

.hero-logo {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 20px rgba(176, 224, 230, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}
.section-title span {
    color: var(--color-accent);
}

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

.skill-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: white;
}

.project-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px rgba(56, 189, 248, 0.4));
    border-radius: 12px;
}

.skill-card ul {
    list-style: none;
}

.skill-card li {
    margin-bottom: 0.8rem;
    padding-left: 0;
    position: relative;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.skill-card li i {
    color: var(--color-primary);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}
.skill-card li span {
    flex: 1;
}
/*.skill-card li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}*/

/* Experience Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-bg);
    z-index: 1;
}

.timeline-content {
    width: 100%;
}

.company-name {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.2rem;
}

.timeline-duration {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: rgba(14, 165, 233, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
}

.role {
    margin-bottom: 1.5rem;
}
.role:last-child {
    margin-bottom: 0;
}

.role-title {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}
.role-title span {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.role p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Education */
.flex-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.edu-details h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.edu-details .degree {
    color: var(--color-text-muted);
}

.edu-details .skills-list {
    margin-top: 1.2rem;
    list-style: none;
    padding: 0;
}

.edu-details .skills-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.edu-details .skills-list li i {
    color: var(--color-primary);
    margin-top: 0.3rem;
    width: 20px;
    text-align: center;
}

.edu-year {
    font-weight: 600;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

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

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.info-item a {
    font-size: 1.25rem;
    font-weight: 500;
    color: white;
}
.info-item a:hover {
    color: var(--color-primary);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Scroll Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Responsive */
@media (max-width: 768px) {
    .headline {
        font-size: 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .cta-group {
        justify-content: center;
    }

    #hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 3rem;
        padding-top: 8rem;
    }

    .ticker-container {
        top: 60px;
    }
    
    .glass-orb {
        width: 200px;
        height: 200px;
    }

    .menu-toggle {
        display: block;
    }

    .ticker-container {
        top: 60px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-slow);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        z-index: 1001; /* Above navbar and ticker */
    }

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

    /* Refine section container for mobile */
    .section-container {
        padding: 4rem 1.5rem;
    }

    /* Adjust education cards for stacking on small screens */
    .education-card.flex-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .edu-year {
        align-self: flex-start;
    }

    /* Timeline refinements */
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-dot {
        left: -1.85rem;
    }
}
