/* ============================================
   GOOGLE FONTS IMPORT
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ============================================
   CSS CUSTOM VARIABLES - CYBER MINIMALIST THEME
   ============================================ */
:root {
    /* Cyber Minimalist Theme */
    --bg-main: #0A0C10;
    --bg-surface: #131720;
    --bg-surface-hover: #1A1F2B;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B3B8;
    --accent-cyan: #00E5FF;
    --border-subtle: rgba(255, 255, 255, 0.08);
    
    /* Legacy variable mappings for compatibility */
    --background-color: var(--bg-main);
    --background-secondary: var(--bg-surface);
    --background-tertiary: var(--bg-surface-hover);
    --text-color: var(--text-primary);
    --text-light: var(--text-secondary);
    --text-bright: var(--text-primary);
    --text-muted: var(--text-secondary);
    --border-color: var(--border-subtle);
    --border-light: var(--border-subtle);
    
    /* Shadows */
    --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 24px rgba(0, 229, 255, 0.2);
    --shadow-glow: 0 0 15px rgba(0, 229, 255, 0.3);
    
    --transition: all 0.3s ease;
    
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Dark Mode Scrollbar */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-surface);
    border-radius: 6px;
    border: 2px solid var(--bg-main);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-surface-hover);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--bg-surface) var(--bg-main);
}

/* Global transitions for interactive elements */
a, button, .project-card, .skill-item, .cert-item, .tab-button, .form-submit-btn, .hero-btn-primary, .hero-btn-secondary {
    transition: var(--transition);
}

/* Typography - Headings */
h1, h2, h3, h4 {
    color: var(--text-primary);
}

/* Typography - Body text */
p, li, span {
    color: var(--text-secondary);
}

/* Highlighted text */
.highlight, strong, b {
    color: var(--accent-cyan);
    font-weight: 600;
}

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

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
    position: sticky;
    top: 0;
    background-color: rgba(10, 12, 16, 0.8);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-subtle);
}

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

.logo {
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.logo-image {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 206, 209, 0.4));
    transition: var(--transition);
    object-fit: contain;
}

.logo:hover .logo-image {
    filter: drop-shadow(0 0 12px rgba(0, 206, 209, 0.6));
    transform: scale(1.05);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ============================================
   HERO SECTION - GRANTWALKER.ME STYLE
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 2rem 6rem 2rem;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 206, 209, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 206, 209, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 0 0;
    opacity: 0.5;
    pointer-events: none;
    transform: perspective(500px) rotateX(60deg) translateY(-20%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, rgba(0, 229, 255, 0.12) 0%, rgba(0, 229, 255, 0.05) 30%, transparent 70%),
        linear-gradient(to bottom, var(--bg-main) 0%, var(--bg-main) 70%, var(--bg-surface) 100%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.hero-greeting {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.hero-name {
    font-family: var(--font-primary);
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.hero-title-text {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-subtitle-small {
    font-size: 0.6em;
    color: var(--text-light);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.hero-btn-primary {
    padding: 1rem 2.5rem;
    background: rgba(0, 229, 255, 0.1);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font-primary);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.hero-btn-primary:hover {
    background: var(--accent-cyan);
    color: var(--bg-main);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
}

.hero-btn-secondary {
    padding: 1rem 2.5rem;
    background: rgba(0, 229, 255, 0.05);
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 6px;
    transition: var(--transition);
    font-family: var(--font-primary);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.hero-btn-secondary:hover {
    background: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
}

.hero-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-profile-container {
    position: relative;
}

.hero-profile {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(0, 206, 209, 0.3);
    transition: var(--transition);
}

.hero-profile:hover {
    box-shadow: 0 0 50px rgba(255, 140, 0, 0.4);
    transform: scale(1.02);
}


.logo-image {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(0, 206, 209, 0.4));
    transition: var(--transition);
    object-fit: contain;
}




/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    padding: 6rem 0;
    background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-surface) 100%);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--brand-gradient);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.about-text strong,
.about-text b {
    color: var(--accent-cyan);
    font-weight: 600;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 5rem 0;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    width: 100%;
    display: block;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
    background: linear-gradient(to bottom, var(--bg-surface) 0%, var(--bg-surface) 30%, var(--bg-main) 70%, var(--bg-main) 100%);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-cyan);
    opacity: 0.3;
}

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

.tab-button {
    padding: 0.75rem 2rem;
    background-color: rgba(0, 229, 255, 0.05);
    border: 2px solid var(--border-subtle);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    backdrop-filter: blur(10px);
}

.tab-button:hover {
    border-color: var(--accent-cyan);
    color: var(--text-primary);
    background-color: rgba(0, 229, 255, 0.1);
}

.tab-button.active {
    background-color: rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.project-category {
    display: none;
}

.project-category.active {
    display: block;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: var(--bg-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.project-card:hover {
    background-color: var(--bg-surface-hover);
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
}

.project-thumbnail {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: var(--background-tertiary);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    opacity: 0.8;
}

.project-thumbnail.contain img {
    object-fit: contain;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
    opacity: 1;
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.project-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.project-link-hint {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 500;
}

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio {
    background: linear-gradient(to bottom, var(--background-color) 0%, var(--background-color) 30%, var(--background-secondary) 70%, var(--background-secondary) 100%);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.portfolio-list {
    max-width: 900px;
    margin: 0 auto;
}

.portfolio-item {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-item:last-child {
    border-bottom: none;
}

.portfolio-content {
    padding-left: 1rem;
    border-left: 3px solid;
    border-image: var(--primary-gradient) 1;
}

.portfolio-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.portfolio-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.portfolio-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    display: inline-block;
    border: 1px solid var(--border-color);
    background-color: rgba(106, 90, 205, 0.1);
    color: var(--primary-color);
    -webkit-text-fill-color: var(--primary-color);
}

.portfolio-placeholder {
    text-align: center;
    padding: 4rem 2rem;
}

.portfolio-placeholder-text {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
    background: linear-gradient(to bottom, var(--bg-main) 0%, var(--bg-main) 70%, var(--bg-surface) 100%);
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-cyan);
    opacity: 0.3;
}

.skills-intro {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    justify-items: center;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item.active .skill-logo {
    box-shadow: 0 0 20px rgba(0, 194, 255, 0.5);
    border: 2px solid rgba(0, 194, 255, 0.5);
}

.skill-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: var(--background-tertiary);
    transition: var(--transition);
}

.skill-item:hover .skill-logo {
    box-shadow: var(--shadow-hover);
    transform: scale(1.05);
}

.skill-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.95;
}

.skill-name {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    margin: 0;
    font-weight: 500;
}

.skill-logo-white {
    background-color: #ffffff !important;
}

.skill-logo-autodesk {
    background-color: #ffffff !important;
}

.skill-logo-autodesk .skill-icon {
    filter: brightness(0);
    opacity: 1;
}

.skill-logo-pearson {
    background-color: #006699 !important;
}

.skill-logo-pearson .skill-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.skill-logo-make {
    background-color: #6A0DAD !important;
}

.skill-logo-make .skill-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.skill-logo-jj {
    background-color: #ffffff !important;
}

.skill-logo-jj .skill-icon {
    opacity: 1;
}

/* Certifications Dropdown */
.certifications-dropdown {
    max-height: 0;
    overflow: visible;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    margin-top: 3rem;
}

.certifications-dropdown.active {
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.5s ease-in, opacity 0.3s ease-in;
    overflow: visible;
}

.certifications-content {
    padding: 2rem 0;
    overflow: visible;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: visible;
    width: 100%;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    overflow: visible;
    box-sizing: border-box;
}

.cert-item:hover {
    background-color: var(--bg-surface-hover);
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.2);
}

.cert-details {
    flex: 1;
}

.cert-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.cert-description {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.cert-category {
    margin-bottom: 3rem;
}

.cert-category:last-child {
    margin-bottom: 0;
}

.cert-category-title {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--background-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.cert-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateX(4px);
    border-color: var(--primary-color);
}

.cert-logo {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--background-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.cert-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.95;
}

/* Brand-specific logo styling */
.cert-logo-autodesk {
    background-color: #ffffff !important;
    padding: 10px;
}

.cert-logo-autodesk .cert-icon {
    filter: brightness(0);
    opacity: 1;
}

.cert-logo-pearson {
    background-color: #006699 !important;
    padding: 10px;
}

.cert-logo-pearson .cert-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.cert-logo-make {
    background-color: #6A0DAD !important;
    padding: 10px;
}

.cert-logo-make .cert-icon {
    filter: brightness(0) invert(1);
    opacity: 1;
}

.cert-logo-microsoft .cert-icon {
    opacity: 1;
    /* Microsoft logo already has brand colors */
}

.cert-logo-jj {
    background-color: #ffffff !important;
    padding: 10px;
}

.cert-logo-jj .cert-icon {
    opacity: 1;
    /* J&J logo already has brand colors */
}

/* White background logos */
.cert-logo-white {
    background-color: #ffffff !important;
    padding: 10px;
}

/* DS logo styling */
.cert-logo img[src="logos/ds-logo.png"] {
    opacity: 1;
    /* DS logo already has proper colors */
}

/* Microsoft logo styling */
.cert-logo img[src="logos/ms-logo.png"] {
    opacity: 1;
    /* Microsoft logo already has brand colors */
}

/* PMI logo styling */
.cert-logo img[src="logos/PMI-logo.png"] {
    opacity: 1;
}

/* USI logo styling */
.cert-logo img[src="logos/USI-logo.png"] {
    opacity: 1;
}

.cert-logo-placeholder {
    background-color: var(--background-tertiary);
    border: 1px solid var(--border-color);
}

.cert-logo-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-align: center;
}

.cert-details {
    flex: 1;
}

.cert-name {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cert-description {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-light);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
    padding: 2rem 0 6rem 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-cyan);
    opacity: 0.3;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 206, 209, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 206, 209, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 0 0;
    opacity: 0.5;
    pointer-events: none;
    transform: perspective(500px) rotateX(60deg) translateY(-20%);
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-intro {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

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

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-link-item i {
    font-size: 1.5rem;
    color: var(--accent-cyan);
    width: 24px;
    text-align: center;
}

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

.contact-link-item:hover i {
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.contact-right {
    display: flex;
    flex-direction: column;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.875rem 1rem;
    color: var(--text-color);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
    min-height: 120px;
    font-family: var(--font-primary);
}

.form-submit-btn {
    padding: 1rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    backdrop-filter: blur(10px);
}

.form-submit-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-main);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
}

.hidden {
    display: none;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(to bottom, var(--background-secondary) 0%, #050508 100%);
    color: var(--text-light);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
}

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

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    overflow-y: auto;
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--background-secondary);
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
    border: 1px solid var(--border-color);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--background-tertiary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: var(--transition);
    z-index: 10;
    border: 1px solid var(--border-color);
}

.modal-close:hover {
    background: var(--primary-gradient);
    color: var(--background-color);
    border-color: transparent;
}

.modal-body {
    padding: 3rem;
}

.modal-title {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.modal-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.modal-links {
    margin-bottom: 2rem;
}

.modal-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.modal-link-btn {
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    border: 1px solid var(--accent-cyan);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.modal-link-btn.primary {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
}

.modal-link-btn.primary:hover {
    background: var(--accent-cyan);
    color: var(--bg-main);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.modal-link-btn.secondary {
    background: transparent;
    color: var(--accent-cyan);
}

.modal-link-btn.secondary:hover {
    background: rgba(0, 229, 255, 0.08);
}

.modal-link-btn.disabled {
    background: transparent;
    border-style: dashed;
    color: var(--text-secondary);
    cursor: default;
}

.modal-disclaimer {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.modal-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
}

.carousel-images {
    display: flex;
    overflow: hidden;
    height: 600px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.carousel-images img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    transition: transform 0.5s ease;
    background-color: var(--bg-surface);
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background-color: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.modal-3d-container {
    margin-top: 2rem;
    padding: 0;
    background-color: transparent;
    border-radius: 8px;
    border: none;
}

.modal-3d-title {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-3d-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 0;
}

.modal-3d-placeholder model-viewer {
    width: 100%;
    height: 500px;
    background-color: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

.modal-3d-placeholder model-viewer {
    width: 100%;
    height: 500px;
    background-color: var(--bg-surface);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--background-secondary);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-light);
        transform: translateX(-100%);
        transition: var(--transition);
        gap: 1.5rem;
        border-right: 1px solid var(--border-color);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .mobile-toggle {
        display: flex;
    }

    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-left {
        order: 2;
        align-items: center;
    }

    .hero-right {
        order: 1;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-title-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-profile {
        width: 250px;
        height: 250px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

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

    .skill-logo {
        width: 80px;
        height: 80px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .carousel-images {
        height: 250px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .about-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-profile {
        width: 120px;
        height: 120px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    .project-tabs {
        flex-direction: column;
        gap: 0.75rem;
    }

    .tab-button {
        width: 100%;
    }
}
