/* ===== Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light Theme Colors */
:root {
    --primary-color: #7c3aed;
    --primary-dark: #6d28d9;
    --secondary-color: #111827;
    --accent-color: #ec4899;
    --accent-light: #f472b6;
    --accent-cyan: #06b6d4;
    --light-bg: #f9fafb;
    --dark-bg: #030712;
    --text-color: #0f172a;
    --text-light: #475569;
    --text-lighter: #64748b;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.15);
}

/* Dark Theme Colors */
body.dark-mode {
    --primary-color: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary-color: #1f2937;
    --accent-color: #ec4899;
    --accent-light: #f472b6;
    --accent-cyan: #06b6d4;
    --light-bg: #1f2937;
    --dark-bg: #030712;
    --text-color: #f3f4f6;
    --text-light: #d1d5db;
    --text-lighter: #9ca3af;
    --border-color: #374151;
    --success-color: #10b981;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
    line-height: 1.7;
    font-weight: 400;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation Bar ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-toggle {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(20deg);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.3px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger:hover span {
    background-color: var(--primary-color);
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    color: var(--text-color);
    padding: 120px 0;
    text-align: center;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    animation: fadeInUp 1s ease;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    line-height: 1.2;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    color: var(--text-lighter);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.4px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.35s ease;
    z-index: 0;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #00d9ff 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
    position: relative;
    z-index: 1;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.5);
}

/* ===== Section Badge ===== */
.section-badge {
    display: inline-block;
    margin: 0 auto 1.5rem;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 50px;
    text-align: center;
    animation: badgeGlow 2s ease-in-out infinite;
}

.section-badge span {
    font-size: 0.95rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

@keyframes badgeGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.4);
    }
}

/* ===== Section Styles ===== */
section {
    padding: 90px 0;
}

section .container:has(.section-badge) {
    text-align: center;
}

/* ===== Section Title ===== */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* ===== About Section ===== */
.about {
    background: linear-gradient(180deg, var(--light-bg) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.about-text p:first-child {
    font-weight: 500;
    color: var(--text-color);
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    z-index: -1;
    padding: 4px;
    opacity: 0.6;
    animation: borderFloat 3s ease-in-out infinite;
}

.about-image::after {
    content: '';
    position: absolute;
    width: 105%;
    height: 105%;
    background: linear-gradient(-45deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 20px;
    z-index: -2;
    animation: rotate 20s linear infinite;
}

.about-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 
        0 0 40px rgba(124, 58, 237, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 0 30px rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    border: 8px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.about-image:hover img {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 0 50px rgba(124, 58, 237, 0.5),
        0 30px 80px rgba(0, 0, 0, 0.2),
        inset 0 0 30px rgba(255, 255, 255, 0.3);
}

@keyframes borderFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== Skills Section ===== */
.skills {
    background: linear-gradient(180deg, var(--light-bg) 0%, #ffffff 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-left-color: var(--accent-color);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.skill-category ul {
    list-style: none;
    position: relative;
    z-index: 1;
}

.skill-category li {
    padding: 0.7rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.skill-category li:hover {
    color: var(--primary-color);
}

.skill-category li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== Contact Section ===== */
.contact {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0a0e1a 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.contact::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.contact .section-title {
    color: white;
    position: relative;
    z-index: 1;
}

.contact .section-title::after {
    background: linear-gradient(90deg, var(--accent-color), #f472b6);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: white;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 500px;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    transition: var(--transition);
    animation: slideInUp 0.6s ease-out forwards;
}

.info-item:nth-child(1) {
    animation-delay: 0.2s;
    opacity: 0;
}

.info-item:nth-child(2) {
    animation-delay: 0.4s;
    opacity: 0;
}

.info-item:nth-child(3) {
    animation-delay: 0.6s;
    opacity: 0;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateX(10px);
    border-left-color: #f472b6;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.2);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--accent-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.info-item:hover i {
    transform: scale(1.15) rotate(10deg);
    color: #f472b6;
}

.info-item p {
    font-size: 1.05rem;
    font-weight: 500;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #000000 100%);
    color: white;
    text-align: center;
    padding: 3.5rem 0;
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--primary-color), var(--accent-color)) 1;
}}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.social-links a:hover {
    transform: translateY(-8px) rotate(10deg);
    box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

/* ===== Project Management ===== */
.project-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.add-project-btn {
    background: linear-gradient(135deg, var(--success-color), #2ecc71);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    font-size: 0.95rem;
    display: none;
}

.add-project-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.add-project-btn:active {
    transform: translateY(-1px);
}

.project-delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    opacity: 0;
    transition: var(--transition);
    z-index: 10;
}

.project-card:hover .project-delete-btn {
    opacity: 1;
}

.project-delete-btn:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.4);
}

.project-delete-btn:active {
    transform: scale(0.95);
}

.project-card {
    position: relative;
}

/* ===== Profile Edit Section ===== */
.about-image {
    position: relative;
}

.profile-edit-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.profile-edit-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 30px rgba(0, 102, 255, 0.4);
}

.profile-edit-btn:active {
    transform: scale(0.95);
}

#profileImageInput {
    display: none;
}

/* ===== Modal Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

body.dark-mode .modal-content {
    background: var(--light-bg);
    color: var(--text-color);
}

.modal-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input:not([type="file"]),
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border-color: var(--border-color);
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-btn.save {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.modal-btn.save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.modal-btn.cancel {
    background: var(--light-bg);
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.modal-btn.cancel:hover {
    background: var(--border-color);
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        gap: 0;
        padding: 1.5rem 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 0.9rem 1.5rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-color);
    }

    .hero-title {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero {
        padding: 80px 0;
        min-height: auto;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .nav-links {
        gap: 0;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .contact-info {
        gap: 1.5rem;
    }

    .info-item {
        padding: 1rem;
    }

    section {
        padding: 50px 0;
    }
}

/* ===== Image Placeholder & Broken Images ===== */
.project-image img {
    background: linear-gradient(135deg, var(--light-bg) 0%, #e5e7eb 100%);
    display: block;
}

.project-image img:not([src]), 
.project-image img[src=""] {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='220'%3E%3Crect fill='%23f0f4f8' width='400' height='220'/%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' font-family='Arial' font-size='16' fill='%2364748b'%3EProject Image%3C/text%3E%3C/svg%3E");
}

/* ===== Notifications ===== */
.notification {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ===== Contact Form Styles ===== */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--light-bg);
    transition: var(--transition);
}

body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* ===== Dark Mode Navbar ===== */
body.dark-mode .navbar {
    background: rgba(31, 41, 55, 0.95);
    border-bottom-color: var(--border-color);
}

/* ===== Enhanced Responsive ===== */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        margin-top: 2rem;
    }

    .contact-content {
        flex-direction: column;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

