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

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #9ca1a9;
    --text-light: #949da9;
    --background: #0f172a;
    --surface: #1e293b;
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

[data-theme="light"] {
    --background: #ffffff;
    --surface: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Welcome Overlay */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.welcome-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.welcome-message {
    text-align: center;
    animation: welcomeFadeIn 1s ease-out;
}

.welcome-text {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.welcome-hello {
    background: linear-gradient(135deg, #ff0080, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInLeft 0.8s ease-out;
    line-height: 0.9;
}

.welcome-world {
    background: linear-gradient(135deg, #00ffff, #ff0080);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInRight 0.8s ease-out 0.3s both;
    line-height: 0.9;
}

.welcome-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Welcome Animations */
@keyframes welcomeFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

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

/* Glass Morphism */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--background);
}

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

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-bracket {
    color: var(--primary-color);
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.code-tag {
    color: var(--primary-color);
    font-family: monospace;
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typed-text {
    position: relative;
}

.cursor {
    display: inline-block;
    background: var(--primary-color);
    margin-left: 2px;
    width: 3px;
    animation: blink 1s infinite;
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.code-line {
    display: block;
    font-family: monospace;
    color: var(--primary-color);
}

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.tech-stack {
    color: var(--text-light);
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.tech-stack {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--primary-color);
}

.tech-stack:hover {
    background: var(--primary-color);
    color: rgb(0, 0, 0);
}

.stack-items {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.stack-item {
    background: var(--surface);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--glass-border);
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.code-window {
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.window-header {
    background: var(--background);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f57;
}

.window-dots span:nth-child(2) {
    background: #ffbd2e;
}

.window-dots span:nth-child(3) {
    background: #28ca42;
}

.window-title {
    color: var(--text-light);
    font-family: monospace;
    font-size: 0.9rem;
}

.code-content {
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-line {
    margin-bottom: 0.5rem;
}

.code-keyword {
    color: #ff79c6;
}

.code-class {
    color: #50fa7b;
}

.code-function {
    color: #ffb86c;
}

.code-self {
    color: #ff79c6;
}

.code-string {
    color: #f1fa8c;
}

.code-line.blink {
    animation: blink 1s infinite;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.floating-element {
    position: absolute;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    animation: float-element 8s ease-in-out infinite;
}

.element-1 { top: 10%; left: -10%; animation-delay: 0s; }
.element-2 { top: 60%; right: -10%; animation-delay: 2s; }
.element-3 { bottom: 20%; left: 20%; animation-delay: 4s; }
.element-4 { top: 30%; right: 20%; animation-delay: 6s; }

@keyframes float-element {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -10px) rotate(5deg); }
    50% { transform: translate(-5px, 5px) rotate(-5deg); }
    75% { transform: translate(-10px, -5px) rotate(3deg); }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 3rem;
    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;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.visual-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.main-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-orb {
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
    position: relative;
}

.code-orb::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.rotating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.rotating-element {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--glass-border);
    animation: orbit 15s linear infinite;
}

.rotating-element:nth-child(1) { animation-delay: 0s; top: 0; left: 50%; }
.rotating-element:nth-child(2) { animation-delay: -5s; top: 50%; right: 0; }
.rotating-element:nth-child(3) { animation-delay: -10s; bottom: 0; left: 50%; }
.rotating-element:nth-child(4) { animation-delay: -15s; top: 50%; left: 0; }

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

.about-text {
    position: relative;
}

.about-badge {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-info span {
    font-weight: 500;
    color: var(--text-dark);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--surface);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.skill-progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    color: var(--text-dark);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tech-tag:hover::before {
    opacity: 1;
}

.tech-tag:hover {
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tech-tag i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.tech-tag:hover i {
    transform: scale(1.2);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-card {
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.contact-card h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.contact-method i {
    width: 40px;
    height: 40px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-method span {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.contact-method a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-color);
}

.contact-form {
    padding: 2.5rem;
    border-radius: 16px;
}

.contact-form h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

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

/* Footer */
.footer {
    background: var(--surface);
    padding: 3rem 0 1rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo p {
    color: var(--text-light);
    margin-top: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    width: 40px;
    height: 40px;
    background: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
}

.footer-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-light);
}

.footer-bottom i {
    color: #ff6b6b;
}

/* Projects Page Styles */
.projects-hero {
    min-height: 20vh;
    display: flex;
    align-items: center;
    padding: 150px 0 80px;
    text-align: center;
}

.projects-hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.projects-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--surface);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Expanded Projects Grid */
.projects-grid-expanded {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.project-card-expanded {
    background: var(--background);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card-expanded:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.project-image {
    position: relative;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-expanded:hover .project-image::before {
    opacity: 1;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card-expanded:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    background: var(--surface);
    color: var(--text-dark);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid var(--glass-border);
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feature i {
    color: var(--secondary-color);
    font-size: 0.8rem;
}

/* Projects CTA */
.projects-cta {
    padding: 80px 0;
}

.cta-content {
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Navigation Logo Link */
.nav-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Education Section Styles */
.education {
    padding: 100px 0;
    position: relative;
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: right;
    padding-right: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    padding-left: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 0 4px var(--background), 0 0 0 6px var(--primary-color);
}

.timeline-content {
    width: calc(50% - 30px);
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.education-degree {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.education-institution {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-duration {
    display: inline-block;
    background: var(--glass);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-light);
    line-height: 1.6;
}

.education-score {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Simple Certifications Styles */
.simple-certifications {
    padding: 80px 0;
    background: var(--surface);
}

.certifications-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.certification-card-simple {
    background: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-card-simple::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.certification-card-simple:hover::before {
    width: 6px;
}

.certification-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.certification-header-simple {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.certification-icon-simple {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.certification-info-simple {
    flex: 1;
}

.certification-provider-simple {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.certification-title-simple {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.certification-description-simple {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.certification-meta-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.certification-date-simple {
    color: var(--text-light);
    font-size: 0.85rem;
}

.certification-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-in-progress {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-completed {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.certification-link-simple {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.certification-link-simple:hover {
    color: var(--primary-dark);
    gap: 0.75rem;
}

/* ============================================= */
/* Complete Responsive Media Queries - Fixed Version */
/* ============================================= */

/* Base Mobile Improvements */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-overflow-scrolling: touch;
}

/* Enhanced Touch Targets */
.btn,
.nav-link,
.filter-btn,
.tech-tag,
.project-link {
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablets and Small Laptops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        gap: 3rem;
    }
    
    .visual-container {
        width: 350px;
        height: 350px;
    }
    
    .projects-grid-expanded {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .certifications-grid-simple {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablets and Mobile (768px and below) */
@media (max-width: 768px) {
    /* Layout & Container */
    .container {
        padding: 0 20px;
    }
    
    section {
        padding: 70px 0;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.8rem 0;
        background: var(--background);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        padding: 10px;
        background: var(--glass);
        border-radius: 8px;
        border: 1px solid var(--glass-border);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .bar {
        width: 20px;
        height: 2px;
        background: var(--text-light);
        margin: 2px 0;
        transition: all 0.3s ease;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: auto;
        max-height: 70vh;
        background: var(--surface);
        backdrop-filter: blur(20px);
        border-left: 1px solid var(--glass-border);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        gap: 0;
        align-items: stretch;
        padding: 0;
        transition: right 0.3s ease-in-out;
        z-index: 999;
        box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.2);
        border-radius: 0 0 0 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 5px);
        background: var(--primary-color);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -5px);
        background: var(--primary-color);
    }
    
    .nav-link {
        padding: 1.2rem 1.5rem;
        font-size: 1.1rem;
        width: 100%;
        text-align: left;
        border-bottom: 1px solid var(--glass-border);
        margin: 0;
        justify-content: flex-start;
        height: auto;
        color: var(--text-light);
        text-decoration: none;
        transition: all 0.3s ease;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--glass);
        color: var(--primary-color);
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* Hero Section */
    .hero {
        min-height: 90vh;
        padding: 100px 0 50px;
        display: flex;
        align-items: center;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.3rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        justify-content: center;
        font-size: 1rem;
    }
    
    .tech-stack {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        margin: 0 auto;
    }
    
    .stack-items {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .stack-item {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    /* Code Window */
    .code-window {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .code-content {
        padding: 1rem;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .section-tag {
        font-size: 0.85rem;
        padding: 6px 16px;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .visual-container {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }
    
    .code-orb {
        width: 150px;
        height: 150px;
    }
    
    .rotating-element {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.2rem 0.8rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    /* Skills Section */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skill-category {
        padding: 1.5rem;
    }
    
    .skill-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .skills-tags {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .tech-tag {
        min-width: 120px;
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    /* Projects Section */
    .projects-grid-expanded {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card-expanded {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .projects-filter {
        gap: 0.8rem;
        margin-bottom: 2.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 1.2rem;
        line-height: 1.5;
    }
    
    .project-tech {
        gap: 0.4rem;
        margin-bottom: 1.2rem;
    }
    
    .project-tech span {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    /* Education Timeline */
    .education-timeline::before {
        left: 25px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 70px);
        margin-left: 70px;
        text-align: left;
        padding: 1.5rem;
    }
    
    .timeline-dot {
        left: 25px;
        width: 16px;
        height: 16px;
    }
    
    .education-degree {
        font-size: 1.2rem;
    }
    
    /* Certifications */
    .certifications-grid-simple {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .certification-card-simple {
        padding: 1.5rem;
    }
    
    .certification-header-simple {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .certification-icon-simple {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-card,
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    /* Body scroll lock */
    body.no-scroll {
        overflow: hidden;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section */
    .hero {
        padding: 90px 0 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .nav-menu {
        width: 100%;
    }
    
    .nav-link {
        padding: 1.1rem 1.5rem;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    /* About Section */
    .visual-container {
        width: 250px;
        height: 250px;
    }
    
    .code-orb {
        width: 130px;
        height: 130px;
    }
    
    .rotating-element {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    /* Skills */
    .skill-category {
        padding: 1.2rem;
    }
    
    .tech-tag {
        min-width: 110px;
        padding: 0.8rem 0.9rem;
        font-size: 0.8rem;
    }
    
    /* Projects */
    .project-content {
        padding: 1.2rem;
    }
    
    .project-tech span {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
}

/* Small Mobile Phones (360px and below) */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .visual-container {
        width: 220px;
        height: 220px;
    }
    
    .code-orb {
        width: 110px;
        height: 110px;
    }
}

/* ============================================= */
/* Icon Fix & Additional Optimizations */
/* ============================================= */

/* Ensure icons are properly displayed */
.fas, .fab, .far {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands', 'Font Awesome 6 Regular' !important;
    font-weight: 900;
}

/* Fallback for icon display */
.icon-fallback {
    display: inline-block;
    width: 1em;
    height: 1em;
    background: currentColor;
    border-radius: 2px;
}

/* Touch feedback improvements */
@media (max-width: 768px) {
    .btn:active,
    .nav-link:active,
    .filter-btn:active {
        transform: scale(0.95);
        transition: transform 0.1s ease;
    }
}

/* Landscape Mobile Optimizations */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 120vh;
        padding: 80px 0 40px;
    }
    
    .nav-menu {
        max-height: 60vh;
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.8rem 1.5rem;
    }
    
    .visual-container {
        width: 200px;
        height: 200px;
    }
}

/* Performance Optimizations */
@media (max-width: 768px) {
    .shape {
        animation-duration: 8s;
    }
    
    .floating-element {
        display: none;
    }
    
    .code-orb {
        animation-duration: 15s;
    }
}

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