/* ==================== VARIABLES & RESET ==================== */
:root {
    --primary-color: #0052a3;
    --primary-dark: #003d7a;
    --secondary-color: #0066cc;
    --accent-color: #0080ff;
    --background-light: #ffffff;
    --background-dark: #0a1428;
    --card-light: #f8fbff;
    --card-dark: #1a2844;
    --text-light: #0a1428;
    --text-dark: #e8f0ff;
    --border-color: #d0e0f0;
    --shadow: 0 10px 40px rgba(0, 51, 153, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 51, 153, 0.12);
}

html.dark {
    --background: var(--background-dark);
    --text: var(--text-dark);
    --card: var(--card-dark);
}

html.light {
    --background: var(--background-light);
    --text: var(--text-light);
    --card: var(--card-light);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark body {
    background: var(--background-dark);
    color: var(--text-dark);
}

/* ==================== CONTAINER & GRID ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.3s ease;
}

html.dark .navbar {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(30, 41, 59, 0.5);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    font-weight: 700;
}

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

.nav-link {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--card-light);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

html.dark .theme-toggle {
    background: var(--card-dark);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 1.3rem;
    cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

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

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    top: -100px;
    left: -100px;
    animation: float 8s ease-in-out infinite;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    top: 50%;
    right: -50px;
    animation: float 10s ease-in-out infinite;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    bottom: 100px;
    left: 50px;
    animation: float 9s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -50px); }
    66% { transform: translate(-20px, 20px); }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-text-animated {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

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

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

.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.8;
}

html.dark .hero-subtitle {
    color: #cbd5e1;
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.6);
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--card-light);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

html.dark .social-link {
    background: var(--card-dark);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.hero-image {
    animation: slideInRight 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-card {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 340px;
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 52, 163, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

html.dark .profile-img {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.profile-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 52, 163, 0.1);
}

html.dark .profile-img:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.profile-badge {
    position: absolute;
    bottom: 20px;
    right: -10px;
    background: white;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--primary-color);
}

html.dark .profile-badge {
    background: var(--card-dark);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes pageLoadFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Page Load Animation */
body {
    animation: pageLoadFade 0.6s ease-out;
}

/* ==================== FEATURED SECTION ==================== */
.featured-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.05), rgba(0, 128, 255, 0.05));
}
.featured-section {
    padding: 80px 20px;
    background: var(--background-light);
}

html.dark .featured-section {
    background: var(--background-dark);
}

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

.featured-card {
    padding: 40px 30px;
    background: var(--card-light);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

html.dark .featured-card {
    background: var(--card-dark);
    border-color: #475569;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.featured-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.featured-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text);
}

.featured-card p {
    color: #64748b;
    font-size: 0.95rem;
}

html.dark .featured-card p {
    color: #cbd5e1;
}

/* ==================== FLAGSHIP PROJECT SECTION ==================== */
.flagship-project {
    padding: 100px 0;
    background: var(--background-light);
}

html.dark .flagship-project {
    background: var(--background-dark);
}

.flagship-header {
    text-align: center;
    margin-bottom: 60px;
}

.flagship-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.flagship-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

html.dark .flagship-header p {
    color: var(--text-dark);
}

.flagship-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.flagship-mockup {
    display: flex;
    justify-content: center;
}

.flagship-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.flagship-info h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin: 0;
}

.flagship-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0;
}

.flagship-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

html.dark .flagship-description {
    color: var(--text-dark);
}

.flagship-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--card-light);
    border-radius: 10px;
    border-left: 3px solid var(--secondary-color);
}

html.dark .feature-item {
    background: var(--card-dark);
}

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

.feature-item span {
    color: var(--text-light);
    font-weight: 500;
}

html.dark .feature-item span {
    color: var(--text-dark);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--card-light);
    padding: 60px 20px 30px;
}

html.dark .footer {
    background: var(--card-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-section p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

html.dark .footer-section p {
    color: #cbd5e1;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

html.dark .footer-section ul a {
    color: #cbd5e1;
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--background-light);
    color: var(--primary-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

html.dark .footer-socials a {
    background: var(--background-dark);
}

.footer-socials a:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

html.dark .footer-bottom {
    border-color: #475569;
    color: #cbd5e1;
}

/* ==================== PAGE HERO ==================== */
.page-hero {
    padding: 80px 20px 40px;
    background: linear-gradient(135deg, rgba(0, 82, 163, 0.05), rgba(0, 102, 204, 0.05));
    text-align: center;
    margin-top: 70px;
}

html.dark .page-hero {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.02), rgba(139, 92, 246, 0.02));
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.2rem;
    color: #64748b;
}

html.dark .page-hero p {
    color: #cbd5e1;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
    padding: 50px 20px 80px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 52, 163, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
    max-width: 450px;
}

html.dark .about-image-wrapper {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-image-wrapper:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 52, 163, 0.1);
}

html.dark .about-image-wrapper:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    height: 100%;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-light);
}

html.dark .intro-text {
    color: var(--text-dark);
}

.about-highlight {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 82, 163, 0.05);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
}

.about-highlight h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.about-highlight p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin: 0;
}

html.dark .about-highlight {
    background: rgba(0, 82, 163, 0.1);
}

html.dark .about-highlight p {
    color: var(--text-dark);
}

.skills-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.skill-preview-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    color: var(--primary-color);
    font-weight: 600;
}

html.dark .skill-preview-item {
    background: var(--card-dark);
    color: var(--accent-color);
}

.skill-preview-item i {
    font-size: 1.3rem;
}

/* ==================== INFO SECTION ==================== */
.info-section {
    padding: 80px 20px;
    background: var(--card-light);
}

html.dark .info-section {
    background: var(--card-dark);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.info-card {
    padding: 30px;
    background: var(--background-light);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

html.dark .info-card {
    background: var(--background-dark);
    border-color: #475569;
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.info-card p,
.info-card a {
    color: #64748b;
    font-size: 0.95rem;
}

html.dark .info-card p,
html.dark .info-card a {
    color: #cbd5e1;
}

.info-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-card a:hover {
    text-decoration: underline;
}

/* ==================== VALUES SECTION ==================== */
.values-section {
    padding: 80px 20px;
}

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

.value-card {
    padding: 40px 30px;
    background: var(--card-light);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

html.dark .value-card {
    background: var(--card-dark);
    border-color: #475569;
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.value-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

html.dark .value-card p {
    color: #cbd5e1;
}

/* ==================== CV SECTION ==================== */
.cv-section {
    padding: 80px 20px;
    background: var(--card-light);
}

html.dark .cv-section {
    background: var(--card-dark);
}

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

.cv-card {
    padding: 40px 30px;
    background: var(--background-light);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

html.dark .cv-card {
    background: var(--background-dark);
    border-color: #475569;
}

.cv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.cv-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cv-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cv-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

html.dark .cv-card p {
    color: #cbd5e1;
}

.cv-download {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
    padding: 80px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.project-card {
    background: var(--card-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

html.dark .project-card {
    background: var(--card-dark);
    border-color: #475569;
}

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

.project-image {
    height: 200px;
    background: var(--background-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

html.dark .project-image {
    background: var(--background-dark);
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.project-content {
    padding: 30px;
}

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

.project-subtitle {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

html.dark .project-subtitle {
    color: #cbd5e1;
}

.tech-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tech-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

html.dark .project-description {
    color: #cbd5e1;
}

.project-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.github-cta {
    background: var(--card-light);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
}

html.dark .github-cta {
    background: var(--card-dark);
}

.github-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.github-cta p {
    color: #64748b;
    font-size: 1rem;
    margin-bottom: 2rem;
}

html.dark .github-cta p {
    color: #cbd5e1;
}

/* ==================== SKILLS SECTION ==================== */
.skills-section {
    padding: 80px 20px;
    background: var(--card-light);
}

html.dark .skills-section {
    background: var(--card-dark);
}

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

.skill-category {
    padding: 30px;
    background: var(--background-light);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

html.dark .skill-category {
    background: var(--background-dark);
    border-color: #475569;
}

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

.skill-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.skill-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.skill-header h3 {
    font-size: 1.3rem;
    margin: 0;
    color: var(--text);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* ==================== LANGUAGES SECTION ==================== */
.languages-section {
    padding: 80px 20px;
}

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

.language-card {
    padding: 30px;
    background: var(--card-light);
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

html.dark .language-card {
    background: var(--card-dark);
    border-color: #475569;
}

.language-card:hover {
    transform: translateY(-5px);
}

.language-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.language-card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

html.dark .language-card p {
    color: #cbd5e1;
}

.language-level {
    height: 6px;
    background: var(--background-light);
    border-radius: 3px;
    overflow: hidden;
}

html.dark .language-level {
    background: var(--background-dark);
}

.level-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    padding: 80px 20px;
}

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

.contact-info {
    padding: 20px;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-card:last-of-type {
    border-bottom: none;
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.contact-card p,
.contact-card a {
    color: #64748b;
    text-decoration: none;
    transition: all 0.3s ease;
}

html.dark .contact-card p,
html.dark .contact-card a {
    color: #cbd5e1;
}

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

.social-links-contact {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-icon:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.4);
}

.contact-form-wrapper {
    padding: 20px;
}

.contact-form-wrapper h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-light);
    color: var(--text);
    font-family: inherit;
    transition: all 0.3s ease;
}

html.dark .form-group input,
html.dark .form-group textarea {
    background: var(--background-dark);
    border-color: #475569;
}

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

.form-message {
    display: none;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* ==================== PROJECTS PAGE ==================== */
.projects-section {
    padding: 50px 0 80px;
    background: var(--background-light);
}

html.dark .projects-section {
    background: var(--background-dark);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-showcase.reverse {
    grid-template-columns: 1fr 1fr;
}

.project-showcase.reverse .project-media {
    order: 2;
}

.project-showcase.reverse .project-info {
    order: 1;
}

.project-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.device-mockup {
    perspective: 1000px;
    position: relative;
    width: 100%;
    max-width: 100%;
}

.device-mockup.laptop {
    max-width: 700px;
    margin: 0 auto;
}

.device-mockup.mobile {
    max-width: 380px;
    margin: 0 auto;
}

.device-frame {
    background: #2a2a2a;
    border-radius: 20px;
    padding: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateX(5deg) rotateY(-5deg);
    transition: transform 0.3s ease;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.device-mockup.mobile .device-frame {
    aspect-ratio: 16 / 10;
    border-radius: 35px;
    padding: 15px;
}

.device-mockup:hover .device-frame {
    transform: rotateX(3deg) rotateY(-3deg);
}

.device-content {
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-mockup.mobile .device-content {
    border-radius: 32px;
}

.device-content video,
.device-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #fff;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-info h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin: 0;
}

.project-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin: 0;
}

.project-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-light);
}

html.dark .meta-item {
    color: var(--text-dark);
}

.meta-item i {
    color: var(--secondary-color);
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-light);
}

html.dark .project-description {
    color: var(--text-dark);
}

.project-features {
    background: var(--card-light);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

html.dark .project-features {
    background: var(--card-dark);
}

.project-features h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.project-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

html.dark .project-features li {
    color: var(--text-dark);
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.project-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.github-cta {
    text-align: center;
    margin-top: 80px;
    padding: 60px;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1), rgba(0, 128, 255, 0.1));
    border-radius: 15px;
    border: 2px solid var(--primary-color);
}

.github-cta h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
    margin-top: 0;
}

.github-cta p {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1.1rem;
    margin-top: 0;
}

html.dark .github-cta p {
    color: var(--text-dark);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--background-light);
        padding: 20px;
        box-shadow: var(--shadow);
        z-index: 999;
    }

    html.dark .nav-menu {
        background: var(--background-dark);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        justify-content: center;
        width: 100%;
    }

    .profile-img {
        max-width: 100%;
        height: auto;
    }

    .profile-card {
        max-width: 100%;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Projects Responsive */
    .project-showcase,
    .project-showcase.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-showcase.reverse .project-media,
    .project-showcase.reverse .project-info {
        order: initial;
    }

    .project-info h2 {
        font-size: 1.8rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .projects-list {
        gap: 60px;
    }

    .device-mockup.laptop {
        max-width: 100%;
    }

    .device-mockup.mobile {
        max-width: 100%;
    }

    .github-cta {
        padding: 40px 20px;
    }

    .github-cta h2 {
        font-size: 1.5rem;
    }

    .github-cta p {
        font-size: 1rem;
    }

    /* Flagship Project Responsive */
    .flagship-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .flagship-info h3 {
        font-size: 1.8rem;
    }

    .flagship-features {
        grid-template-columns: 1fr;
    }

    .device-mockup.laptop {
        max-width: 100%;
    }
}

/* ============================================
   DESIGN UI/UX PAGE STYLES
   ============================================ */

.design-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 82, 163, 0.03) 0%, rgba(0, 166, 255, 0.03) 100%);
}

.design-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.design-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.design-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
}

html.dark .design-intro p {
    color: var(--text-dark);
}

/* Gallery Filters */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    color: var(--primary-color);
    border: 2px solid rgba(0, 82, 163, 0.2);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 52, 163, 0.2);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 80px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 52, 163, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 52, 163, 0.2);
}

.gallery-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 52, 163, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
}

.overlay-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.gallery-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Hidden by default - shown with JavaScript */
.gallery-item.hidden {
    display: none;
}


/* Tools Section */
.tools-section {
    padding: 80px 0;
}

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

.tool-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 52, 163, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 52, 163, 0.15);
}

.tool-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.tool-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.tool-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

html.dark .tool-card p {
    color: var(--text-dark);
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(0, 82, 163, 0.03) 0%, rgba(0, 166, 255, 0.03) 100%);
}

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

.process-step {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 52, 163, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 52, 163, 0.15);
}

.step-number {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.process-step h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.process-step p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

html.dark .process-step p {
    color: var(--text-dark);
}

/* Responsive Design Page */
@media (max-width: 768px) {
    .design-intro h2 {
        font-size: 1.8rem;
    }

    .design-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .design-image {
        height: 200px;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .tool-card i {
        font-size: 2.5rem;
    }

    .step-number {
        font-size: 2rem;
    }
}
