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

html {
    scroll-behavior: smooth;
}

/* CSS Custom Properties for Theming */
:root {
    /* Light Mode Colors */
    --bg-primary: rgba(255, 255, 255, 0.1);
    --bg-secondary: rgba(248, 249, 250, 0.1);
    --bg-tertiary: rgba(255, 255, 255, 0.15);
    --text-primary: #000000;
    --text-secondary: #333333;
    --text-tertiary: #666666;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --nav-bg: rgba(255, 255, 255, 0.1);
    --nav-bg-scroll: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(255, 255, 255, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.05);
    
    /* Simplified background */
    --body-bg: linear-gradient(135deg, #f8faff, #e8f2ff);
    
    /* Gradient Colors (same for both modes) */
    --gradient-primary: linear-gradient(45deg, #667eea, #764ba2);
    --gradient-secondary: linear-gradient(45deg, #ffd700, #ff6b6b);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Brand Colors */
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #ff6b6b;
    --success-color: #4ecdc4;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --bg-primary: rgba(26, 26, 26, 0.1);
    --bg-secondary: rgba(45, 45, 45, 0.1);
    --bg-tertiary: rgba(58, 58, 58, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-tertiary: #999999;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(26, 26, 26, 0.1);
    --nav-bg-scroll: rgba(26, 26, 26, 0.15);
    --card-bg: rgba(45, 45, 45, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    
    /* Simplified dark background */
    --body-bg: linear-gradient(135deg, #0f0f23, #1a1a2e);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--body-bg);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.1s ease;
    box-shadow: 0 1px 4px var(--glass-shadow);
}

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

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

.nav-logo h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: color 0.2s ease;
}

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

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

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

/* Glass Blur Overlay for Mobile Menu */
.nav-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
    pointer-events: none;
}

.nav-blur-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.theme-toggle:hover {
    background: var(--glass-border);
    transform: scale(1.1);
}

.theme-toggle i {
    color: var(--text-primary);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.theme-toggle:hover i {
    transform: rotate(15deg);
}

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

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

/* Hero Section - OPTIMIZED */
.hero {
    min-height: 100vh;
    height: auto;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-bottom: 4rem;
}

/* Network Animation Canvas */
#network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    min-height: 80vh;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-content {
    color: white;
}

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

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
    border: 2px solid transparent;
}

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

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

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2rem;
}

.hero-right-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease;
}

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

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.profile-info h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

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

/* Sections */
section {
    padding: 4rem 0;
    background: var(--bg-primary);
    margin: 1rem 0;
    border-radius: 15px;
}

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

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bio-card, .description-card {
    background: var(--bg-tertiary);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bio-card:hover, .description-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.bio-card h3, .description-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.bio-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bio-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.bio-item i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.bio-item div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bio-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.bio-item span {
    color: var(--text-secondary);
}

.phone-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.phone-link:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .phone-link {
    color: #00d4ff;
    font-weight: 600;
}

[data-theme="dark"] .phone-link:hover {
    color: #00ffff;
    text-shadow: 0 0 8px #00d4ff;
}

.social-follow {
    margin-top: 1rem;
}

.social-follow h4 {
    text-align: center;
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.social-icons-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.social-icon-hero {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    text-decoration: none;
    color: white;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.social-icon-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.social-icon-hero i {
    font-size: 1.5rem;
}

.social-icon-hero span {
    font-size: 0.9rem;
    font-weight: 500;
}

.social-icon-hero.github:hover {
    background: rgba(51, 51, 51, 0.2);
    border-color: #333;
}

.social-icon-hero.instagram:hover {
    background: rgba(225, 48, 108, 0.2);
    border-color: #e1306c;
}

.social-icon-hero.twitter:hover {
    background: rgba(29, 161, 242, 0.2);
    border-color: #1da1f2;
}

.social-icon-hero.linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
    border-color: #0077b5;
}

.description-card p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.skills-section {
    margin-top: 2rem;
}

.skills-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.value-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.value-item:hover {
    transform: translateY(-3px);
}

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

.value-item:hover i {
    transform: scale(1.1);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.2s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item i {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.social-links h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.social-icon {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.social-icon:hover {
    transform: translateY(-2px);
}

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

.project-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.2s ease;
}

.project-card:hover {
    transform: translateY(-3px);
}

.project-icon {
    background: var(--gradient-primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.project-content {
    position: relative;
    z-index: 1;
}

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

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

.project-category {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Project category color variants */
.project-card:nth-child(1) .project-category {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border-color: rgba(52, 152, 219, 0.2);
}

.project-card:nth-child(2) .project-category {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.2);
}

.project-card:nth-child(3) .project-category {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.2);
}

.project-card:nth-child(4) .project-category {
    background: rgba(155, 89, 182, 0.1);
    color: #9b59b6;
    border-color: rgba(155, 89, 182, 0.2);
}

.project-card:nth-child(5) .project-category {
    background: rgba(241, 196, 15, 0.1);
    color: #f1c40f;
    border-color: rgba(241, 196, 15, 0.2);
}

.project-card:nth-child(6) .project-category {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
    border-color: rgba(230, 126, 34, 0.2);
}

/* Gallery Section */
.gallery {
    background: var(--bg-secondary);
}

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

.gallery-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, var(--overlay-bg));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.gallery-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px var(--glass-shadow);
    transition: transform 0.15s ease;
    will-change: transform;
}

.contact-item:hover {
    transform: translate3d(0, -2px, 0);
}

.contact-item i {
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-item h4 {
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.contact-item p {
    color: var(--text-secondary);
}

.social-links {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
    text-align: center;
}

.social-links h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform 0.15s ease;
    box-shadow: 0 1px 8px var(--glass-shadow);
    will-change: transform;
}

.social-icon:hover {
    transform: translate3d(0, -1px, 0);
}

/* Footer */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 -1px 4px var(--shadow-color);
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-content i {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        /* Glass effect for light mode */
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        width: 320px;
        max-width: 85%;
        height: 100vh;
        text-align: left;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        padding: 120px 0 2rem 0;
        z-index: 1000;
        /* Glass morphism properties */
        border: 1px solid rgba(255, 255, 255, 0.18);
        border-right: none;
        /* Performance optimization */
        will-change: transform;
        transform: translateX(0);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .nav-link {
        color: var(--text-primary);
        font-size: 1.1rem;
        padding: 1.2rem 2rem;
        font-weight: 500;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        overflow: hidden;
        transition: all 0.3s ease;
        margin: 0;
    }

    /* Hover effect for menu items */
    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 0;
        height: 100%;
        background: rgba(255, 255, 255, 0.1);
        transition: width 0.3s ease;
        z-index: -1;
    }

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

    .nav-menu .nav-link:hover {
        color: var(--primary-color);
        padding-right: 2.5rem;
    }

    .nav-menu .nav-link::after {
        width: 0;
        bottom: auto;
        top: 50%;
        right: 2rem;
        transform: translateY(-50%);
        height: 2px;
    }

    /* Dark mode navigation with enhanced glass effect */
    [data-theme="dark"] .nav-menu {
        background: rgba(26, 26, 26, 0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -4px 0 30px rgba(0, 0, 0, 0.4);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-right: none;
    }

    [data-theme="dark"] .nav-menu .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    [data-theme="dark"] .nav-menu .nav-link::before {
        background: rgba(255, 255, 255, 0.05);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle i {
        font-size: 1rem;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        align-items: center;
    }
    
    .hero-image {
        padding-top: 0;
        align-items: center;
    }
    
    .hero-right-content {
        gap: 1.5rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }
    
    .social-icons-hero {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        max-width: 250px;
    }
    
    .social-icon-hero {
        min-width: 60px;
        padding: 0.7rem;
    }
    
    .social-icon-hero i {
        font-size: 1.2rem;
    }
    
    .social-icon-hero span {
        font-size: 0.65rem;
    }

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

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

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

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

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

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

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

    .bio-card, .description-card {
        padding: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .social-icons {
        gap: 0.5rem;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling enhancements */
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Base Class for Cards */
.card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 2px 8px var(--shadow-color);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--shadow-hover);
}

/* Buttons - Keep original styling since they're small */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 8px var(--shadow-color);
}

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

.btn-primary:hover {
    box-shadow: 0 4px 16px var(--glass-shadow);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--text-primary);
    background: var(--glass-bg);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px var(--glass-shadow);
    transform: translateY(-2px);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    body::before,
    body::after,
    .glass:hover,
    .achievement-card:hover,
    .gallery-item:hover,
    .contact-item:hover,
    .value-item:hover {
        animation: none !important;
        transition: none !important;
    }
}

/* Custom X Logo Styling to match reference image */
.custom-x-icon {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
    font-style: normal !important;
    font-weight: 600 !important;
    font-size: 1.2em !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Alternative fallback X logo using CSS shapes */
.custom-x-logo {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-block;
}

.custom-x-logo::before,
.custom-x-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transform-origin: center;
}

.custom-x-logo::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.custom-x-logo::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* X.com styling to match other social icons */
.social-icon-hero.twitter:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
    color: #000000;
}

/* Dark mode X styling to match other icons */
[data-theme="dark"] .social-icon-hero.twitter:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.3);
    color: #000000;
}

/* Clients Section */
.clients {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.client-controls {
    margin-bottom: 2rem;
    display: flex;
    justify-content: flex-end;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.client-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.client-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.client-actions {
    display: flex;
    gap: 0.5rem;
}

.client-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.client-action-btn:hover {
    background: var(--glass-border);
    color: var(--primary-color);
}

.client-info {
    margin-top: 1rem;
}

.client-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.client-info-item i {
    width: 1rem;
    color: var(--primary-color);
}

.client-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.status-inactive {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

.status-pending {
    background: rgba(236, 201, 75, 0.1);
    color: #ecc94b;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-primary);
    border-radius: 1rem;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    margin: auto;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

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

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

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

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.modal-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

/* Remove chatbot-related styles */
.chat-widget,
.chat-container,
.chat-header,
.chat-messages,
.chat-input,
.chat-button,
.chat-toggle {
    display: none !important;
}

/* Hide any chat-related elements */
[class*="chat-"] {
    display: none !important;
}

/* Hide AI Assistant elements */
[class*="ai-assistant"],
[id*="ai-assistant"],
.ai-assistant,
#ai-assistant {
    display: none !important;
} 