/* ==========================================================================
   PREMIUM FUTURISTIC DESIGN SYSTEM (TRUE HORIZONTAL FLEX BUTTONS + BRAND LOGO)
   ========================================================================== */

/* IMPORTING HIGH-TECH FUTURISTIC GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Orbitron:wght@600;800;900&display=swap');

html {
    scroll-behavior: smooth;
}

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

:root {
    --bg-dark-premium: #060b13;   
    --neon-cyan: #00ffcc;         
    --neon-blue: #2563eb;         
    --text-white: #f3f4f6;        
    --text-muted: #9ca3af;       
    --card-dark: #0f172a;         
    --border-neon: rgba(0, 255, 204, 0.25);
    
    --font-heading: 'Orbitron', -apple-system, sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--bg-dark-premium);
    
    /* CRISP BACKGROUND ATTACHED SAFELY */
    background-image: linear-gradient(rgba(6, 11, 19, 0.75), rgba(6, 11, 19, 0.90)),
                      url('https://cdn.pixabay.com/photo/2016/01/19/19/26/amsterdam-1150319_1280.jpg'); 
    background-size: cover;            
    background-position: center;
    background-repeat: no-repeat;       
    background-attachment: fixed;      
    
    color: var(--text-white);
    font-family: var(--font-code);
    line-height: 1.6;
    letter-spacing: -0.2px;
    overflow-x: hidden;
}

/* ==========================================================================
   NAVIGATION LAYER (CRISP NAVIGATION WITH LEFT BRAND LOGO)
   ========================================================================== */

header {
    width: 100%;
    padding: 20px 80px;
    background: #060b13;
    border-bottom: 1px solid rgba(0, 255, 204, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

header::after {
    content: "";
    display: table;
    clear: both;
}

/* BRAND LOGO DESIGN (LEFT SIDE) */
.logo {
    float: left;
    font-family: Plus Jakarta Sans', sans-serif;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    line-height: 1;
    padding-top: 4px; /* Perfectly balances vertical alignment with links */
}

/* LINKS WRAPPER (RIGHT SIDE) */
nav {
    float: right;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 32px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: var(--font-code);
    text-transform: uppercase;     
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px var(--neon-cyan);
}

/* ==========================================================================
   MAIN STRUCTURAL LAYOUT CONTROL
   ========================================================================== */

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    min-height: auto; 
    padding: 120px 0 80px 0;             
    box-sizing: border-box;
    clear: both;
    scroll-margin-top: 90px; 
}

/* ==========================================================================
   HOME / HERO SECTION (HORIZONTAL BUTTON ALIGNMENT MATRIX)
   ========================================================================== */

.hero-section {
    padding: 120px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.6); 
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;
}

.hero-section h1 {
    font-family: var(--font-heading); 
    font-size: 3.8rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    margin-bottom: 24px;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

#typing-effect {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.hero-section p {
    font-size: 1.3rem;
    font-family: var(--font-code);
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* MASTER FIX: Anchors row execution block */
.hero-section a {
    display: inline-flex !important;
    text-decoration: none;
    vertical-align: middle;
}

/* Hides any layout-breaking breaks between buttons */
.hero-section br {
    display: none !important; 
}

/* Extra safety container rules to bundle buttons horizontally */
.hero-section-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   BUTTON STRUCTURAL LAYOUT CONTROL (SHARP DOCK LINK SYSTEM)
   ========================================================================== */

.github-button {
    font-family: var(--font-code);
    letter-spacing: 1px;
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    padding: 14px 24px;       
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
    transition: all 0.2s ease;
    
    margin: 10px 12px; 
    white-space: nowrap; 
}

.github-button:hover {
    background: var(--neon-cyan);
    color: #000000;
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: translateY(-2px);
}

.cta-btn {
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    padding: 14px 24px;       
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.1);
    transition: all 0.2s ease;
    
    margin: 10px 12px; 
    white-space: nowrap; 
}

.cta-btn:hover {
    background: var(--neon-cyan);
    color: #000000;
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: translateY(-2px);
}

/* ==========================================================================
   SHARP NEON INTERACTIVE PANELS (ABOUT, EXPERIENCES, CONTACT)
   ========================================================================== */

h2 {
    font-family: var(--font-heading); 
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    color: #ffffff;
    border-left: 4px solid var(--neon-cyan);
    padding-left: 15px;
}

.interactive-showcase {
    background: var(--card-dark);
    border: 1px solid var(--border-neon);
    border-radius: 8px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.showcase-header {
    font-family: var(--font-code);
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--neon-cyan);
    border-bottom: 1px solid var(--border-neon);
}

.showcase-body {
    padding: 40px;
    font-size: 1.05rem;
    color: var(--text-white);
}

/* ==========================================================================
   GRID LAYER & SHARP CARDS CONFIG
   ========================================================================== */

.about-me-grid {
    display: block;
    clear: both;
}

.about-me-grid::after {
    content: "";
    display: table;
    clear: both;
}

.about-card {
    background: var(--card-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 32px;
    width: 48%;
    float: left;
    margin-right: 4%;
    margin-bottom: 24px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
}

.about-card:nth-child(2n) {
    margin-right: 0;
}

.about-card .about-me-grid, 
.skills-section .about-me-grid .about-me-grid {
    display: block;
    float: none;
    width: 100%;
    clear: both;
}

.about-card .about-card,
.about-me-grid .about-me-grid .about-card {
    width: 100% !important; 
    float: none !important;
    margin-right: 0 !important;
    margin-top: 24px;
    border: 1px solid var(--border-neon);
}

.about-card:hover {
    transform: translateY(-2px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

.about-card h3 {
    font-family: var(--font-heading); 
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-bottom: 16px;
    color: #ffffff;
}

.about-card p {
    font-family: var(--font-code); 
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Cursor Engine */
.typed-cursor {
    color: var(--neon-cyan);
    font-weight: 300;
    animation: blink 0.8s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================================================
   SKILLS SECTION GRID AND LARGE PROMINENT BOXES
   ========================================================================== */

.skills-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 24px;
    margin-top: 30px;
    padding: 10px 0;
}

.skill-box {
    background: var(--card-dark);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.skill-box:hover {
    transform: translateY(-8px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.35);
    background: rgba(15, 23, 42, 0.95);
}

.skill-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.skill-box:hover .skill-icon {
    transform: scale(1.1);
}

.skill-name {
    font-family: var(--font-code);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

/* ==========================================================================
   IMAGE-ONLY GALLERY GRID (MATCHING REFERENCE SHOWCASE)
   ========================================================================== */

.projects-intro-banner {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid var(--border-neon);
    border-radius: 12px;
    padding: 24px 30px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.projects-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: center;
}

#professional-intro-banner {
       font-family: cursive;
       color: whitesmoke;
}

.gallery-card {
    position: relative;
    display: block;
    width: 100%;
    height: 240px;
    border-radius: 18px; /* Smooth rounded borders like your screenshot */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #0d1527;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

/* Hover Effect: Modern glow + Image Zoom */
.gallery-card:hover {
    transform: translateY(-6px);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.3);
}

.gallery-card:hover .gallery-img {
    transform: scale(1.06);
}

/* Subtle Interactive Hover Overlay for Direct Clicking */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 11, 19, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.gallery-overlay span {
    font-family: var(--font-code);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon-cyan);
    border: 2px solidn);
    border: 2px solid var(--neon-cyan);
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(6, 11, 19, 0.9);
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 0 15px var(--neon-cyan);
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

@media (max-width: 768px) {
    .projects-gallery-grid {
        grid-template-columns: 1fr;
    }
    .gallery-card {
        height: 210px;
    }
}

/* ==========================================================================
   PREMIUM SYSTEM FOOTER & CROSS-BRANDING LINK
   ========================================================================== */

footer {
    width: 100%;
    padding: 30px 0;
    background: #060b13;
    border-top: 1px solid rgba(0, 255, 204, 0.15);
    margin-top: 80px;
    clear: both;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-brand-link {
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Designing the active verification link */
.footer-brand-link a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: var(--font-heading); /* Orbitron look for the brand */
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 8px;
    padding: 4px 10px;
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Subtle premium glow response */
.footer-brand-link a:hover {
    background: rgba(0, 255, 204, 0.1);
    box-shadow: 0 0 12px var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: #ffffff;
}

/* Responsive Footer Adaptation */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .footer-brand-link a {
        margin-left: 0;
        margin-top: 5px;
        display: inline-block;
    }
}

/* Responsive Structural Locking */
@media (max-width: 768px) {
    header { padding: 20px; text-align: center; }
    .logo { float: none; display: block; margin-bottom: 12px; padding-top: 0; }
    nav { float: none; display: inline-block; top: 0; position: relative; width: auto; background: transparent; border: none; box-shadow: none; padding: 0; }
    nav a { margin: 0 10px; font-size: 0.9rem; }
    section { padding: 80px 0 40px 0; scroll-margin-top: 140px; }
    .project-card { width: 100% !important; float: none !important; margin-right: 0 !important; }
    .hero-section h1 { font-size: 2.3rem; }
    
    .hero-section a { display: inline-block !important; width: 85%; margin: 5px auto; }
    .cta-btn { width: 100%; margin: 0; }
}  