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

/* CSS Variables */
:root {
    /* Colors */
    --primary-bg: #0a0e27;
    --secondary-bg: #16213e;
    --accent-color: #64ffda;
    --accent-secondary: #f7931e;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --text-muted: #495670;
    --white: #ffffff;
    --dark: #000000;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    --gradient-card: linear-gradient(145deg, rgba(22, 33, 62, 0.8), rgba(10, 14, 39, 0.9));
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    
    /* Animation */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(100, 255, 218, 0.3);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

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

/* Matrix Background */
#matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
}

/* Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 0 20px var(--accent-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 20px;
    z-index: 1000;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

header.scrolled {
    background: rgba(10, 14, 39, 0.95);
    box-shadow: var(--shadow-md);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 80px;
}

/* Logo Styles */
.logo {
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.8s ease forwards;
    animation-delay: 0.2s;
}

.logo-text {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo-text:hover {
    color: var(--accent-color);
}

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

.name {
    color: var(--text-primary);
}

/* Navigation Styles */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    counter-reset: menu -1; /* start from 0 (first increment shows 0) */
}

.nav-links li {
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.8s ease forwards;
}

.nav-links li:nth-child(1) { animation-delay: 0.3s; }
.nav-links li:nth-child(2) { animation-delay: 0.4s; }
.nav-links li:nth-child(3) { animation-delay: 0.5s; }
.nav-links li:nth-child(4) { animation-delay: 0.6s; }
.nav-links li:nth-child(5) { animation-delay: 0.7s; }

.nav-link {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 10px 0;
    transition: var(--transition-smooth);
}

.nav-link::before {
    content: '0'counter(menu) '.'; /* show 0,1,2... without hard prefix */
    counter-increment: menu;
    color: var(--accent-color);
    font-size: 12px;
    margin-right: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

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

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

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

/* Main Content */
main {
    counter-reset: item;
}

section {
    padding: var(--section-padding);
    position: relative;
}

/* Home Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-icon:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.floating-icon:nth-child(3) { top: 30%; left: 70%; animation-delay: 2s; }
.floating-icon:nth-child(4) { top: 70%; left: 20%; animation-delay: 3s; }
.floating-icon:nth-child(5) { top: 10%; left: 60%; animation-delay: 4s; }
.floating-icon:nth-child(6) { top: 80%; left: 50%; animation-delay: 5s; }

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

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

/* Terminal Window */
.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.terminal-window.enhanced {
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(22, 33, 62, 0.8));
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 40px rgba(100, 255, 218, 0.4);
}

.terminal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
}

.terminal-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.btn:hover {
    transform: scale(1.2);
}

.btn.close { background: #ff5f56; }
.btn.minimize { background: #ffbd2e; }
.btn.maximize { background: #27ca3f; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
}

.terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    position: relative;
}

.terminal-line {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.prompt {
    color: var(--accent-color);
    font-weight: 600;
}

.command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    margin-bottom: 16px;
    margin-left: 16px;
    line-height: 1.5;
}

.file-type {
    margin-right: 10px;
    font-weight: 500;
}

.file-type.python { color: #3776ab; }
.file-type.js { color: #f7df1e; }
.file-type.php { color: #777bb4; }
.file-type.framework { color: var(--accent-color); }
.file-type.db { color: #ff6b6b; }

.terminal-cursor {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-bg);
    animation: blink 1s infinite;
    margin-left: 5px;
}

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

.typing-cursor {
    color: var(--accent-color);
    animation: blink 1s infinite;
}

/* Profile Section */
.profile-section {
    text-align: center;
    order: 1;
}

.image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.profile-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.profile-ring::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    animation: rotate 15s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.image:hover img {
    transform: scale(1.1);
}

.status-indicator {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.status-text {
    font-size: 12px;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

/* Name Section */
.name-section {
    text-align: center;
    order: 2;
}

.greeting {
    display: block;
    font-size: 18px;
    color: var(--accent-color);
    font-family: var(--font-mono);
    margin-bottom: 10px;
}

.main-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    white-space: nowrap;
}

.name-highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    cursor: pointer;
}

/* Updated to avoid clipping the typing text */
.role-container {
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;      /* keep on one line on desktop */
    white-space: nowrap;    /* prevent wrapping mid-typing */
}

.role-prefix {
    color: var(--text-secondary);
}

/* Let the typed text grow naturally without a fixed min-width */
.role-text {
    color: var(--accent-color);
    font-family: var(--font-mono);
    font-weight: 600;
    min-width: 0;           /* remove previous hard min width */
    display: inline-block;  /* ensures cursor sits right after text */
}

/* Style Typed.js default cursor */
.typed-cursor {
    color: var(--accent-color);
    font-weight: 600;
    animation: blink 1s infinite;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--dark);
    border: 2px solid transparent;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-color);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--dark);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
    margin: 30px auto 0; /* center horizontally within container */
    text-align: center;
    width: fit-content;
}

.scroll-indicator:hover {
    transform: scale(1.1); /* prevent jumping left on hover */
    color: var(--accent-color);
}

.scroll-text {
    font-family: var(--font-mono);
    font-size: 12px;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover .scroll-text {
    opacity: 1;
}

.scroll-btn {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    position: relative;
    margin: 0 auto 10px;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover .scroll-btn {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
}

.scroll-arrow {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-color);
    font-size: 16px;
    animation: scrollArrow 1.5s infinite;
}

.scroll-hint {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 5px;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.scroll-indicator:hover .scroll-hint {
    opacity: 1;
    color: var(--accent-color);
}

@keyframes scrollArrow {
    0% { 
        top: 8px; 
        opacity: 0; 
        transform: translateX(-50%) translateY(0);
    }
    50% { 
        opacity: 1; 
        transform: translateX(-50%) translateY(5px);
    }
    100% { 
        top: 20px; 
        opacity: 0; 
        transform: translateX(-50%) translateY(10px);
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--accent-color);
}

.section-line {
    width: 100px;
    height: 3px;
    background: var(--gradient-accent);
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
#about {
    background: var(--secondary-bg);
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-text {
    width: 100%;
    max-width: 700px;
}

.about-terminal {
    display: none;
}

.about-stats {
    width: 100%;
    margin-top: 40px;
}

.about-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-description h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-primary);
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.journey-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: var(--gradient-card);
    border-radius: 12px;
    border: 1px solid rgba(100, 255, 218, 0.2);
    transition: var(--transition-smooth);
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
}

.highlight-icon {
    color: var(--accent-color);
    font-size: 24px;
    margin-top: 5px;
    min-width: 40px;
}

.highlight-text h4 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 16px;
}

.highlight-text p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Code Block */
.code-block {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--accent-color);
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
}

.file-name {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
}

.code-actions {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
}

.code-actions i {
    cursor: pointer;
    transition: var(--transition-smooth);
}

.code-actions i:hover {
    color: var(--accent-color);
}

.code-content {
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
}

/* Code Block alignment overrides to mimic real Python formatting */
.code-block { text-align: left; }
.code-content { text-align: left; }
.code-content pre { margin: 0; white-space: pre; }
.code-content code { display: block; white-space: pre; }

.code-content .keyword { color: #c678dd; }
.code-content .class-name { color: #e5c07b; }
.code-content .function { color: #61afef; }
.code-content .param { color: #d19a66; }
.code-content .string { color: #98c379; }
.code-content .comment { color: #5c6370; font-style: italic; }

/* Code Block: keep Prism theme from overriding our card background */
.code-block pre[class*="language-"],
.code-block code[class*="language-"] {
    background: transparent !important;
    color: var(--text-primary);
}

/* Optional: tweak Prism token colors slightly inside our code block */
.code-block .token.comment { color: #5c6370; font-style: italic; }
.code-block .token.keyword { color: #c678dd; }
.code-block .token.class-name { color: #e5c07b; }
.code-block .token.function { color: #61afef; }
.code-block .token.string { color: #98c379; }
.code-block .token.number { color: #d19a66; }

/* About: Download CV block */
.download-cv {
    margin-top: 25px;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.download-cv .cv-text {
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 14px;
}
.download-cv .cv-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

/* About Stats */
.about-stats {
    display: block;
}

.about-description {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.about-description:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-description h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.about-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 16px;
}

/* Skills Section */
#skills {
    background: var(--primary-bg);
}

.skills-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.category-header i {
    font-size: 2rem;
    color: var(--accent-color);
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.skill-item:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--accent-color);
    transform: translateX(5px);
}

.skill-name {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
}

/* Services Section */
#services {
    background: var(--secondary-bg);
}

.services-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    height: 400px;
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.card-front {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.card-back {
    background: var(--gradient-accent);
    color: var(--dark);
    transform: rotateY(180deg);
}

.service-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-preview {
    color: var(--text-secondary);
    font-size: 16px;
}

.card-overlay {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: var(--accent-color);
    color: var(--dark);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0;
    transition: var(--transition-smooth);
}

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

.card-back h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.card-back p {
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-back ul {
    list-style: none;
    text-align: left;
}

.card-back li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.card-back li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--dark);
}

/* Contact Section */
#contact {
    background: var(--primary-bg);
}

.contact-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* Contact Info */
.info-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.info-header h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.info-header p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    font-size: 1.2rem;
    color: var(--dark);
}

.contact-text h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
}

.contact-text p {
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

/* Social Links */
.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.social-link:hover {
    background: var(--accent-color);
    color: var(--dark);
    transform: translateY(-3px);
}

.social-link a{
    color: var(--text-primary);
    text-decoration: none;
}

.social-link.twitter:hover { background: #1da1f2; }
.social-link.github:hover { background: #333; }
.social-link.linkedin:hover { background: #0077b5; }
.social-link.instagram:hover { background: #e4405f; }

/* Contact Form */
.form-card {
    background: var(--gradient-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-header h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: var(--font-primary);
    transition: var(--transition-smooth);
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.form-group textarea {
    min-height: 120px;
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: var(--transition-smooth);
}

.form-group input:focus + .input-highlight,
.form-group textarea:focus + .input-highlight {
    width: 100%;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 18px;
    background: var(--gradient-accent);
    border: none;
    border-radius: 50px;
    color: var(--dark);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Footer */
footer {
    background: var(--dark);
    padding: 40px 0;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text p {
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loader-container {
    text-align: center;
}

.terminal-loader {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    overflow: hidden;
    width: 300px;
}

.terminal-loader .terminal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-color);
}

.terminal-loader .terminal-body {
    padding: 20px;
    font-family: var(--font-mono);
}

.loading-text {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.loading-text .prompt {
    color: var(--accent-color);
}

.loading-text .command {
    color: var(--text-primary);
}

.loading-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-secondary);
}

.dot {
    animation: loadingDots 1.5s infinite;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }
.dot:nth-child(4) { animation-delay: 0.6s; }

@keyframes loadingDots {
    0%, 80%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

/* Animations */
@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

/* Glassmorphism effect for elements */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}