/* ========== CSS RESET & VARIABLES ========== */
:root {
    /* Color Palette - Tesla/Apple/OpenAI Inspired */
    --black: #000000;
    --dark-gray: #0a0a0a;
    --gray: #1a1a1a;
    --light-gray: #2a2a2a;
    --white: #ffffff;
    --off-white: #f5f5f7;
    
    /* Accent Colors - AI/Neon Theme */
    --primary: #10a37f;
    --primary-light: #2ed9b1;
    --primary-glow: rgba(16, 163, 127, 0.3);
    --secondary: #00a8ff;
    --accent: #8a2be2;
    --neon-blue: #00d4ff;
    --neon-purple: #b026ff;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --inter: 'Inter', sans-serif;
    --space-grotesk: 'Space Grotesk', sans-serif;
    --jetbrains: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 120px 5%;
    --container-width: 1400px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;
}

/* Light Mode Variables */
.light-mode {
    --black: #ffffff;
    --dark-gray: #f5f5f7;
    --gray: #e5e5ea;
    --light-gray: #d1d1d6;
    --white: #000000;
    --off-white: #1a1a1a;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* ========== BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--black);
    color: var(--off-white);
    font-family: var(--inter);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color var(--transition), color var(--transition);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(16, 163, 127, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 168, 255, 0.1) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--space-grotesk);
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 4.5rem;
    font-weight: 700;
}

h2 {
    font-size: 3.5rem;
}

h3 {
    font-size: 2rem;
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient 3s ease-in-out infinite;
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ========== LAYOUT ========== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 163, 127, 0.1);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--off-white);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== GLASS EFFECTS ========== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
    z-index: -1;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 60px rgba(16, 163, 127, 0.1);
}

.glass-header {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-family: var(--space-grotesk);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    z-index: -1;
    transition: opacity var(--transition);
}

.btn:hover::before {
    opacity: 0.9;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 25px var(--primary-glow),
        0 0 30px rgba(16, 163, 127, 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--off-white);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(16, 163, 127, 0.1);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

/* ========== HEADER & NAVIGATION ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all var(--transition);
}

header.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 10, 0.95);
}

.navbar {
    position: relative;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    z-index: 1001;
}

.logo-text {
    font-family: var(--space-grotesk);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--off-white);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: rotate(30deg);
}

.theme-toggle i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--transition);
}

.theme-toggle .fa-moon {
    opacity: 1;
}

.theme-toggle .fa-sun {
    opacity: 0;
}

.light-mode .theme-toggle .fa-moon {
    opacity: 0;
}

.light-mode .theme-toggle .fa-sun {
    opacity: 1;
}

.terminal-toggle {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--off-white);
    cursor: pointer;
    transition: all var(--transition);
}

.terminal-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all var(--transition);
}

.mobile-menu-btn:hover {
    border-color: var(--primary);
}

.menu-line {
    width: 20px;
    height: 2px;
    background: var(--off-white);
    transition: all var(--transition);
}

/* ========== HERO SECTION ========== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow), transparent);
    filter: blur(40px);
    opacity: 0.3;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation: float 20s infinite ease-in-out;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation: float 25s infinite ease-in-out reverse;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation: float 30s infinite ease-in-out;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 25%;
    animation: float 22s infinite ease-in-out;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 2rem;
    padding: 0.75rem 1.5rem;
    background: rgba(16, 163, 127, 0.1);
    border: 1px solid rgba(16, 163, 127, 0.2);
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
    font-weight: 500;
    min-height: 2.5rem;
}

.typing-text {
    color: var(--secondary);
}

.cursor-blink {
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--off-white);
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    min-width: 140px;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--space-grotesk);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--off-white);
    opacity: 0.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-photo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-frame {
    position: relative;
    width: 400px;
    height: 400px;
}

.photo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: linear-gradient(135deg, var(--primary), var(--secondary), var(--neon-purple));
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
    animation: pulse-glow 4s infinite;
}

.photo-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--black);
    box-shadow: 
        0 0 60px var(--primary-glow),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.photo-container:hover .profile-photo {
    transform: scale(1.05);
}

.photo-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--off-white);
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--off-white);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { top: 10px; opacity: 1; }
    50% { top: 25px; opacity: 0.5; }
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background: linear-gradient(to bottom, transparent, var(--dark-gray) 20%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-photo.glass-card {
    padding: 0;
    overflow: hidden;
    height: 500px;
}

.photo-wrapper {
    width: 100%;
    height: 100%;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-photo:hover .photo-wrapper img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: var(--white);
}

.photo-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.photo-overlay p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-intro p {
    font-size: 1.125rem;
    opacity: 0.9;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.highlight-card {
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.highlight-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.highlight-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.highlight-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.code-snippet {
    background: #1a1a1a;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #2a2a2a;
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--jetbrains);
    font-size: 0.875rem;
    color: var(--off-white);
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--off-white);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.code-snippet pre {
    margin: 0;
    padding: 1.5rem;
    font-family: var(--jetbrains);
    font-size: 0.875rem;
    line-height: 1.6;
    overflow-x: auto;
}

.code-snippet code {
    background: transparent !important;
    padding: 0 !important;
}

/* ========== SKILLS SECTION ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-category.glass-card {
    padding: 2rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    font-size: 2rem;
    color: var(--primary);
}

.category-header h3 {
    font-size: 1.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-item {
    padding: 0.75rem 1.25rem;
    background: rgba(16, 163, 127, 0.1);
    border: 1px solid rgba(16, 163, 127, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    color: var(--primary);
    transition: all var(--transition);
}

.skill-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

/* ========== PROJECTS SECTION ========== */
.projects-section {
    background: linear-gradient(to bottom, var(--dark-gray), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card.glass-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--transition);
}

.project-card:hover {
    transform: translateY(-10px) rotateX(5deg);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.project-badge {
    padding: 0.5rem 1rem;
    background: rgba(16, 163, 127, 0.1);
    border: 1px solid rgba(16, 163, 127, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--off-white);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.4rem 1rem;
    background: rgba(16, 163, 127, 0.1);
    border: 1px solid rgba(16, 163, 127, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.project-link:hover {
    color: var(--secondary);
    transform: translateX(5px);
}

/* ========== EXPERIENCE SECTION ========== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 30px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border: 4px solid var(--black);
    box-shadow: 0 0 20px rgba(16, 163, 127, 0.5);
}

.timeline-content.glass-card {
    padding: 2rem;
}

.timeline-date {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--off-white);
    opacity: 0.8;
    margin-bottom: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-tag {
    padding: 0.4rem 1rem;
    background: rgba(16, 163, 127, 0.1);
    border: 1px solid rgba(16, 163, 127, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--primary);
}

/* ========== CERTIFICATES SECTION ========== */
.certificates-section {
    background: linear-gradient(to bottom, transparent, var(--dark-gray) 20%);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.certificate-card.glass-card {
    text-align: center;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.certificate-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.certificate-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.certificate-description {
    color: var(--off-white);
    opacity: 0.8;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition);
}

.certificate-link:hover {
    color: var(--secondary);
    transform: translateY(-3px);
}

/* ========== NEURAL NETWORK DIAGRAM SECTION ========== */
.neural-network-section {
    background: linear-gradient(to bottom, var(--dark-gray), transparent);
}

.neural-network-diagram {
    padding: 2rem;
    text-align: center;
}

.neural-network-diagram svg {
    border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.3);
}

.neural-node {
    stroke-width: 2;
    stroke: var(--primary);
    fill: var(--glass-bg);
    transition: all var(--transition);
}

.neural-node.input {
    fill: var(--primary);
    stroke: var(--primary-light);
}

.neural-node.hidden {
    fill: var(--secondary);
    stroke: var(--neon-blue);
}

.neural-node.output {
    fill: var(--neon-purple);
    stroke: var(--accent);
}

.neural-connection {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
    fill: none;
    transition: all var(--transition);
}

.neural-connection:hover {
    stroke: var(--primary);
    stroke-width: 2;
}

.neural-layer {
    stroke: var(--glass-border);
    stroke-width: 1;
    fill: rgba(255, 255, 255, 0.02);
    rx: 10;
    ry: 10;
}

.neural-text {
    font-family: var(--space-grotesk);
    font-size: 12px;
    fill: var(--off-white);
}

.neural-text.label {
    font-size: 14px;
    font-weight: bold;
    fill: var(--primary);
}

/* ========== CONTACT SECTION ========== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card.glass-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.clickable-whatsapp {
    cursor: pointer;
    position: relative;
}

.clickable-whatsapp::after {
    content: 'Click to open WhatsApp';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity var(--transition);
    white-space: nowrap;
}

.clickable-whatsapp:hover::after {
    opacity: 1;
}

.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--off-white);
    opacity: 0.8;
}

.contact-form-container.glass-card {
    padding: 2.5rem;
}

.contact-form h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.form-note {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.contact-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--off-white);
    font-family: var(--inter);
    font-size: 1rem;
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* ========== FOOTER ========== */
.footer {
    padding: 4rem 0 2rem;
    background: linear-gradient(to top, var(--dark-gray), transparent);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: var(--off-white);
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--off-white);
    text-decoration: none;
    font-size: 1.25rem;
    transition: all var(--transition);
    border: 1px solid var(--glass-border);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    transform: translateY(-5px);
    border-color: transparent;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-links a {
    color: var(--off-white);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--off-white);
    opacity: 0.6;
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

/* ========== ANIMATIONS ========== */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ========== SPECIAL EFFECTS ========== */
.mouse-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 163, 127, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
}

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary);
    border-radius: 50%;
    pointer-events: none;
}

.terminal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    max-width: 90vw;
    background: #1a1a1a;
    border-radius: var(--radius-lg);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(16, 163, 127, 0.2);
    z-index: 1002;
    overflow: hidden;
    display: none;
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #2a2a2a;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.terminal-title {
    flex: 1;
    font-family: var(--jetbrains);
    font-size: 0.875rem;
    color: var(--off-white);
}

.terminal-close {
    background: transparent;
    border: none;
    color: var(--off-white);
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.terminal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--jetbrains);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--off-white);
    min-height: 300px;
    max-height: 60vh;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 0.5rem;
}

.terminal-line.success {
    color: var(--primary);
}

.terminal-line .cursor {
    animation: blink 1s infinite;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.75rem; }
    .hero-title { font-size: 3.5rem; }
    .section-title { font-size: 2.75rem; }
    .photo-frame { width: 350px; height: 350px; }
}

@media (max-width: 992px) {
    .hero-content,
    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .photo-frame {
        width: 300px;
        height: 300px;
        margin: 0 auto 3rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        border-left: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        font-size: 1.2rem;
        padding: 1rem 0;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }
    
    .hero-title { font-size: 2.75rem; }
    .section-title { font-size: 2.25rem; }
    
    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 10px;
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    
    .certificates-grid {
        grid-template-columns: 1fr;
    }
    
    .clickable-whatsapp::after {
        display: none;
    }
}

@media (max-width: 576px) {
    section { padding: 80px 5%; }
    .container { padding: 0 1rem; }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
    
    .hero-title { font-size: 2.25rem; }
    .section-title { font-size: 1.875rem; }
    
    .glass-card { padding: 1.5rem; }
    
    .photo-frame {
        width: 250px;
        height: 250px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}