/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --success-color: #96CEB4;
    --warning-color: #FFEAA7;
    --error-color: #FF7675;
    --purple-gradient: #667eea;
    --pink-gradient: #f093fb;
    --orange-gradient: #ff9a9e;
    --blue-gradient: #a8edea;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #E9ECEF;
    --gray-200: #DEE2E6;
    --gray-300: #CED4DA;
    --gray-400: #ADB5BD;
    --gray-500: #6C757D;
    --gray-600: #495057;
    --gray-700: #343A40;
    --gray-800: #212529;
    --gray-900: #1A1D23;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.5;
    color: var(--white);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 29, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.5s ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo span {
    font-size: var(--font-size-xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-8);
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: var(--font-size-sm);
    position: relative;
    transition: color var(--transition-normal);
}

.nav-link:hover {
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-normal);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #ff9a9e 75%, #a8edea 100%);
    overflow: hidden;
    padding-top: 70px;
}

/* Matrix Rain Effect */
.matrix-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ff41;
    text-shadow: 0 0 5px #00ff41;
    animation: matrix-fall linear infinite;
    opacity: 0.7;
}

.matrix-column:nth-child(1) { left: 5%; animation-duration: 3s; animation-delay: 0s; }
.matrix-column:nth-child(2) { left: 15%; animation-duration: 4s; animation-delay: 0.5s; }
.matrix-column:nth-child(3) { left: 25%; animation-duration: 3.5s; animation-delay: 1s; }
.matrix-column:nth-child(4) { left: 35%; animation-duration: 4.5s; animation-delay: 1.5s; }
.matrix-column:nth-child(5) { left: 45%; animation-duration: 3s; animation-delay: 2s; }
.matrix-column:nth-child(6) { left: 55%; animation-duration: 4s; animation-delay: 0.3s; }
.matrix-column:nth-child(7) { left: 65%; animation-duration: 3.5s; animation-delay: 0.8s; }
.matrix-column:nth-child(8) { left: 75%; animation-duration: 4.5s; animation-delay: 1.3s; }
.matrix-column:nth-child(9) { left: 85%; animation-duration: 3s; animation-delay: 1.8s; }
.matrix-column:nth-child(10) { left: 95%; animation-duration: 4s; animation-delay: 2.3s; }

/* Terminal Window */
.terminal-window {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 200px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 8px;
    border: 1px solid #00ff41;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    z-index: 2;
    animation: terminal-glow 2s ease-in-out infinite alternate;
}

.terminal-header {
    background: linear-gradient(90deg, #ff5f56, #ffbd2e, #27ca3f);
    height: 25px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

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

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.terminal-content {
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #00ff41;
    line-height: 1.4;
}

.terminal-line {
    margin-bottom: 3px;
    opacity: 0;
    animation: terminal-type 0.5s ease-out forwards;
}

.terminal-line:nth-child(1) { animation-delay: 1s; }
.terminal-line:nth-child(2) { animation-delay: 2s; }
.terminal-line:nth-child(3) { animation-delay: 3s; }
.terminal-line:nth-child(4) { animation-delay: 4s; }
.terminal-line:nth-child(5) { animation-delay: 5s; }
.terminal-line:nth-child(6) { animation-delay: 6s; }
.terminal-line:nth-child(7) { animation-delay: 7s; }
.terminal-line:nth-child(8) { animation-delay: 8s; }

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 12px;
    background: #00ff41;
    animation: cursor-blink 1s infinite;
    margin-left: 2px;
}

/* Code Editor Window */
.code-editor {
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 350px;
    height: 180px;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 8px;
    border: 1px solid #007acc;
    box-shadow: 0 0 20px rgba(0, 122, 204, 0.3);
    z-index: 2;
    animation: code-editor-glow 3s ease-in-out infinite alternate;
}

.code-header {
    background: #2d2d30;
    height: 30px;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: #cccccc;
}

.code-content {
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    line-height: 1.4;
    color: #d4d4d4;
}

.code-line {
    margin-bottom: 2px;
    opacity: 0;
    animation: code-type 0.8s ease-out forwards;
}

.code-line:nth-child(1) { animation-delay: 2s; }
.code-line:nth-child(2) { animation-delay: 3s; }
.code-line:nth-child(3) { animation-delay: 4s; }
.code-line:nth-child(4) { animation-delay: 5s; }
.code-line:nth-child(5) { animation-delay: 6s; }
.code-line:nth-child(6) { animation-delay: 7s; }
.code-line:nth-child(7) { animation-delay: 8s; }
.code-line:nth-child(8) { animation-delay: 9s; }

.code-keyword { color: #569cd6; }
.code-string { color: #ce9178; }
.code-function { color: #dcdcaa; }
.code-comment { color: #6a9955; }
.code-number { color: #b5cea8; }

/* Floating Code Snippets */
.floating-code {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    pointer-events: none;
    animation: float-code 8s linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.floating-code:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    color: #ff6b6b;
}

.floating-code:nth-child(2) {
    top: 40%;
    right: 20%;
    animation-delay: 2s;
    color: #4ecdc4;
}

.floating-code:nth-child(3) {
    bottom: 30%;
    left: 15%;
    animation-delay: 4s;
    color: #45b7d1;
}

.floating-code:nth-child(4) {
    top: 60%;
    right: 10%;
    animation-delay: 6s;
    color: #96ceb4;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--success-color), var(--primary-color));
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    max-width: 800px;
    padding: 0 var(--spacing-4);
}

.profile-image {
    margin-bottom: var(--spacing-8);
    animation: fadeInUp 1s ease-out;
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-normal);
}

.profile-photo:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: var(--font-size-5xl);
    font-weight: 700;
    margin-bottom: var(--spacing-6);
    color: var(--white);
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.highlight {
    background: linear-gradient(135deg, var(--warning-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter-container {
    margin-bottom: var(--spacing-6);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.typewriter {
    font-size: var(--font-size-xl);
    color: rgba(255, 255, 255, 0.9);
    border-right: 2px solid var(--warning-color);
    white-space: nowrap;
    overflow: hidden;
    animation: typewriter 3s steps(40) 1s both, blink 1s infinite 1s;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-10);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.6s both;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--warning-color), var(--primary-color));
    color: var(--white);
    padding: var(--spacing-4) var(--spacing-8);
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-lg);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    animation: fadeInUp 1s ease-out 0.8s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-color), var(--warning-color));
}

/* Section Titles */
.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-4);
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* About Section */
.about {
    padding: var(--spacing-20) 0;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #d299c2 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
    align-items: start;
}

.about-text {
    animation: fadeInLeft 1s ease-out;
}

.about-intro {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-6);
    color: var(--gray-800);
    line-height: 1.7;
}

.about-description {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-8);
    color: var(--gray-700);
    line-height: 1.6;
}

.interests h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-4);
    color: var(--gray-800);
}

.interests ul {
    list-style: none;
}

.interests li {
    padding: var(--spacing-2) 0;
    position: relative;
    padding-left: var(--spacing-6);
    color: var(--gray-700);
}

.interests li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--purple-gradient);
    font-size: var(--font-size-sm);
}

.skills-section {
    animation: fadeInRight 1s ease-out;
}

.skills-section h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-6);
    color: var(--gray-800);
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-4);
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-6);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.skill-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--white);
    font-size: var(--font-size-sm);
}

.skill-icon.html { background: #E34F26; }
.skill-icon.css { background: #1572B6; }
.skill-icon.js { background: #F7DF1E; color: var(--gray-800); }
.skill-icon.responsive { background: linear-gradient(135deg, var(--success-color), var(--secondary-color)); }
.skill-icon.git { background: #F05032; }
.skill-icon.figma { background: linear-gradient(135deg, #F24E1E, var(--primary-color)); }

.skill-icon.html::after { content: 'H'; }
.skill-icon.css::after { content: 'C'; }
.skill-icon.js::after { content: 'J'; }
.skill-icon.responsive::after { content: 'R'; }
.skill-icon.git::after { content: 'G'; }
.skill-icon.figma::after { content: 'F'; }

.skill-item span {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    text-align: center;
}

/* Projects Section */
.projects {
    padding: var(--spacing-20) 0;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-8);
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.6s ease-out;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
}

.project-card:nth-child(2) { animation-delay: 0.1s; }
.project-card:nth-child(3) { animation-delay: 0.2s; }
.project-card:nth-child(4) { animation-delay: 0.3s; }

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-4xl);
    font-weight: bold;
    color: var(--white);
    position: relative;
}

.project-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
}

.project-placeholder.calculator {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.project-placeholder.calculator::after {
    content: '📱';
    position: relative;
    z-index: 1;
}

.project-placeholder.landing {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #ff9a9e 100%);
}

.project-placeholder.landing::after {
    content: '🍽️';
    position: relative;
    z-index: 1;
}

.project-placeholder.todo {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 50%, #a8edea 100%);
}

.project-placeholder.todo::after {
    content: '✅';
    position: relative;
    z-index: 1;
}

.project-placeholder.portfolio {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 50%, #96CEB4 100%);
}

.project-placeholder.portfolio::after {
    content: '💼';
    position: relative;
    z-index: 1;
}

.project-content {
    padding: var(--spacing-6);
}

.project-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-3);
    color: var(--gray-800);
}

.project-description {
    color: var(--gray-600);
    margin-bottom: var(--spacing-4);
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-2);
    margin-bottom: var(--spacing-5);
}

.tech-tag {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
    color: var(--gray-800);
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.project-link {
    display: inline-block;
    color: var(--purple-gradient);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--purple-gradient);
    padding: var(--spacing-2) var(--spacing-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.project-link:hover {
    background: linear-gradient(135deg, var(--purple-gradient), var(--primary-color));
    color: var(--white);
    transform: translateX(4px);
}

/* Contact Section */
.contact {
    padding: var(--spacing-20) 0;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 25%, #d299c2 50%, #667eea 75%, #764ba2 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    animation: fadeInLeft 1s ease-out;
}

.contact-info h3 {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    margin-bottom: var(--spacing-4);
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-8);
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-details {
    margin-bottom: var(--spacing-8);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-4);
    font-size: var(--font-size-base);
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    font-size: var(--font-size-xl);
}

.social-links {
    display: flex;
    gap: var(--spacing-4);
}

.social-link {
    display: inline-block;
    padding: var(--spacing-3) var(--spacing-6);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-normal);
    color: var(--white);
}

.social-link.github {
    background: linear-gradient(135deg, var(--gray-800), var(--gray-600));
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077B5, var(--accent-color));
}

.social-link.twitter {
    background: linear-gradient(135deg, #1DA1F2, var(--secondary-color));
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    animation: fadeInRight 1s ease-out;
}

.contact-form form {
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-8);
    border-radius: var(--radius-xl);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: var(--spacing-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-2);
    font-weight: 500;
    color: var(--gray-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: var(--spacing-3);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    transition: border-color var(--transition-normal);
    font-family: var(--font-family);
}

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

.submit-button {
    background: linear-gradient(135deg, var(--purple-gradient), var(--primary-color));
    color: var(--white);
    border: none;
    padding: var(--spacing-4) var(--spacing-8);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-color), var(--purple-gradient));
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
    text-align: center;
    padding: var(--spacing-8) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer p {
    font-size: var(--font-size-base);
}

/* Animations */

/* Scroll animations */
section, .project-card, .skill-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

section.animate-in, .project-card.animate-in, .skill-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced transitions */
.project-card, .skill-item, .cta-button, .project-link, .submit-button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Form focus effects */
.form-group.focused label {
    color: var(--purple-gradient);
    transform: translateY(-5px);
    font-size: var(--font-size-sm);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes matrix-fall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

@keyframes terminal-glow {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.6);
    }
}

@keyframes code-editor-glow {
    0% {
        box-shadow: 0 0 20px rgba(0, 122, 204, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 122, 204, 0.6);
    }
}

@keyframes terminal-type {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes code-type {
    0% {
        opacity: 0;
        transform: translateX(-5px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes float-code {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 0.6;
    }
    75% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-40px) rotate(10deg);
        opacity: 0;
    }
}

/* Responsive Design */

/* Mobile First - Base styles above are for mobile */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-6);
    }
    
    .nav-menu {
        display: flex;
    }
    
    .hero-title {
        font-size: var(--font-size-5xl);
    }
    
    .profile-photo {
        width: 220px;
        height: 220px;
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-16);
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .submit-button {
        width: auto;
        min-width: 150px;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-8);
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .typewriter {
        font-size: var(--font-size-2xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-xl);
    }
    
    .skills-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-10);
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Navigation (for smaller screens) */
@media (max-width: 767px) {
    .terminal-window,
    .code-editor {
        display: none;
    }
    
    .matrix-rain {
        opacity: 0.3;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(26, 29, 35, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: var(--spacing-8);
        transition: left var(--transition-normal);
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(10px);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .typewriter {
        font-size: var(--font-size-lg);
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease-out 0.4s both;
    }
    
    .profile-photo {
        width: 150px;
        height: 150px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        gap: var(--spacing-3);
    }
    
    .social-link {
        text-align: center;
    }
}

/* Accessibility and Performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .floating-shapes,
    .cta-button,
    .contact-form {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: var(--spacing-8) 0;
    }
    
    .section-title {
        color: var(--gray-900) !important;
    }
}

/* Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #FF0000;
        --secondary-color: #0000FF;
        --accent-color: #00FF00;
        --gray-600: #FFFFFF;
        --gray-700: #FFFFFF;
        --gray-800: #FFFFFF;
        --gray-900: #FFFFFF;
    }
}