/* ==========================================================================
   0. CONFIGURATION, VARIABLE DEFINITIONS & CSS RESET
   ========================================================================== */

/* Importing professional font families from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-primary: #0D0D0D;
    --bg-secondary: #1A1A1A;
    --card-bg: #242424;
    --border-color: #333333;
    --accent-primary: #3B82F6;
    --accent-hover: #60A5FA;
    --text-primary: #FFFFFF;
    --text-secondary: #B3B3B3;
    --success: #22C55E;
    
    /* Glassmorphism Specs */
    --glass-bg: rgba(36, 36, 36, 0.6);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: rgba(0, 0, 0, 0.4);

    /* Fonts Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Global Transitions & Layout Metrics */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
}

/* Reset baseline defaults for Cross-Browser Consistency */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

ul, ol {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    background: none;
    border: none;
    color: inherit;
}

button {
    cursor: pointer;
}

/* Custom Webkit Scrollbar UI */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--radius-sm);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Shared Utility Layout Structural Elements */
.content-section {
    padding: 100px 0;
}

.section-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-hover));
    border-radius: var(--radius-sm);
}

/* UI Glassmorphism Structural Architecture Rule */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

/* Premium Dynamic Interactive Component Elements */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}


/* ==========================================================================
   1. STICKY NAVIGATION UI COMPONENTS
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    width: 90%;
    max-width: var(--max-width);
    height: 80px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--text-primary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 35px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Elegant Underline Navigation Animation Rules */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition-smooth);
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
}

.menu-toggle .hamburger-icon,
.menu-toggle .hamburger-icon::before,
.menu-toggle .hamburger-icon::after {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    display: block;
    transition: var(--transition-smooth);
}


/* ==========================================================================
   2. HERO SECTION COMPONENT STYLING
   ========================================================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08), transparent 45%);
    padding-top: 80px;
}

.hero-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-greeting {
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.typing-target {
    color: var(--text-primary);
    font-weight: 600;
    border-right: 2px solid var(--accent-primary);
    padding-right: 5px;
    animation: cursorBlink 0.8s infinite;
}

.hero-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-bottom: 35px;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

/* Micro-Interaction Groups for Social Connections */
.hero-socials {
    display: flex;
    gap: 20px;
}

.social-icon-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.social-icon-link:hover {
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

.icon-placeholder {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Professional Avatar Image Container */
.hero-avatar-container {
    display: flex;
    justify-content: center;
}

.profile-image-placeholder {
    width: 320px;
    height: 320px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), transparent);
    z-index: 1;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%);
    transition: var(--transition-smooth);
}

.profile-image-placeholder:hover .profile-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}


/* ==========================================================================
   3. ABOUT SECTION ARCHITECTURE
   ========================================================================== */
.about-section {
    background-color: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

.about-bio p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-mission-goals {
    padding: 35px;
}

.about-mission-goals h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.mission-statement, .passion-statement {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
    border-left: 2px solid var(--accent-primary);
}


/* ==========================================================================
   4. TECHNICAL EXPERTISE GRID (SKILLS)
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.skills-category-card {
    padding: 30px;
}

.skills-category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.skills-category-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skills-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-list li::before {
    content: '→';
    color: var(--accent-primary);
    font-weight: bold;
}

/* Learning State Differentiation Modifier */
.active-learning {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(180deg, var(--glass-bg), rgba(59, 130, 246, 0.03));
}

.active-learning .skills-list li::before {
    content: '●';
    font-size: 0.6rem;
    color: var(--accent-hover);
}


/* ==========================================================================
   5. FEATURED PROJECTS VIEW MODULES
   ========================================================================== */
.projects-section {
    background-color: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Strategic Hover Lift Effect Architecture */
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 15px 35px var(--glass-shadow);
}

.project-image-wrapper {
    width: 100%;
    height: 200px;
    background-color: var(--bg-primary);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.tag {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 50px;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-outline {
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-solid {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.btn-solid:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}


/* ==========================================================================
   6. EDUCATION TIMELINE COMPONENT
   ========================================================================== */
.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 30px;
    border-left: 2px solid var(--border-color);
}

.education-card {
    padding: 35px;
    position: relative;
}

.education-card::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 40px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 4px solid var(--accent-primary);
}

.timeline-duration {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 15px;
}

.institution-name {
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.education-context {
    color: var(--text-secondary);
    font-size: 0.95rem;
}


/* ==========================================================================
   7. CERTIFICATIONS MATRIX STYLING
   ========================================================================== */
.certifications-section {
    background-color: var(--bg-secondary);
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.cert-card-placeholder {
    padding: 30px;
    position: relative;
    border-style: dashed;
}

.cert-status-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    background: var(--bg-primary);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.cert-card-placeholder h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 8px;
    padding-right: 70px;
}

.cert-issuer {
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.cert-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}


/* ==========================================================================
   8. CONTACT FORM & LAYOUT INTERFACES
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
}

.contact-form-wrapper {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.submit-btn {
    align-self: flex-start;
    padding: 14px 35px;
    cursor: pointer;
}

.contact-details-panel {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card, .cv-download-box {
    padding: 35px;
}

.info-card h3, .cv-download-box h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.contact-links-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-links-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-links-list strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.contact-links-list a:hover {
    color: var(--accent-primary);
}

.inline-address {
    font-style: normal;
}

.cv-download-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.btn-full {
    display: flex;
    width: 100%;
}


/* ==========================================================================
   9. SITE FOOTER COMPONENT
   ========================================================================== */
.site-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px 0;
}

.footer-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-copyright {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links-list a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-social-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-social-link:hover {
    color: var(--accent-primary);
}

.back-to-top-wrapper {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
}

.back-to-top-btn {
    font-family: var(--font-heading);
    font-size: 0.9  rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-top-btn:hover {
    color: var(--text-primary);
}


/* ==========================================================================
   10. ANIMATION KEYFRAMES DECLARATIONS
   ========================================================================== */
@keyframes cursorBlink {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}


/* ==========================================================================
   11. RESPONSIVE MEDIA BREAKPOINTS
   ========================================================================== */

/* Laptop Grid Adjustment Layout Layer */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    
    .hero-container {
        grid-template-columns: 1.1fr 0.9fr;
    }
    
    .about-grid, .contact-layout {
        gap: 35px;
    }
    
    .profile-image-placeholder {
        width: 280px;
        height: 280px;
    }
}

/* Tablet Media Screen Viewport Configurations */
@media (max-width: 768px) {
    .content-section {
        padding: 70px 0;
    }

    .menu-toggle {
        display: flex;
    }

    /* Transform navigation layout into mobile menu structure placeholder */
    .nav-menu {
        display: none; /* Controlled traditionally via active class states */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-avatar-container {
        grid-row: 1;
    }

    .hero-intro {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group, .hero-socials {
        justify-content: center;
    }

    .about-grid, .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-links-list, .footer-socials {
        justify-content: center;
        align-items: center;
        flex-direction: row;
    }
}

/* Compressed Mobile Device Frameworks */
@media (max-width: 480px) {
    html { font-size: 14px; }

    .hero-name {
        font-size: 2.8rem;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .profile-image-placeholder {
        width: 230px;
        height: 230px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .submit-btn {
        width: 100%;
    }
}