/**
* SDE Portfolio - GitHub Light Theme
* Professional developer aesthetic
* Clean, readable, authentic
*/

/* ============================================
   VARIABLES & ROOT STYLES
   ============================================ */
:root {
    /* Typography */
    --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-heading: "Poppins", sans-serif;

    /* GitHub Light Color Palette */
    --color-primary: #0969DA;
    --color-primary-dark: #0550AE;
    --color-primary-light: #54A3FF;
    --color-secondary: #1F883D;
    --color-accent: #BF3989;

    --color-text: #1F2328;
    --color-text-light: #656D76;
    --color-text-dark: #0E1116;

    --color-bg: #FFFFFF;
    --color-bg-alt: #F6F8FA;
    --color-bg-dark: #24292F;

    --color-border: #D0D7DE;
    --color-success: #1F883D;
    --color-error: #D1242F;

    /* Gradients - GitHub inspired */
    --gradient-primary: linear-gradient(135deg, #0969DA 0%, #54A3FF 100%);
    --gradient-secondary: linear-gradient(135deg, #1F883D 0%, #26A641 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(9, 105, 218, 0.95) 0%, rgba(31, 136, 61, 0.95) 100%);

    /* Shadows - Subtle GitHub style */
    --shadow-sm: 0 1px 0 rgba(31, 35, 40, 0.04);
    --shadow-md: 0 3px 6px rgba(140, 149, 159, 0.15);
    --shadow-lg: 0 8px 24px rgba(140, 149, 159, 0.2);
    --shadow-xl: 0 12px 48px rgba(140, 149, 159, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Spacing */
    --section-padding: 100px 0;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--color-primary-dark);
}

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

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

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
    padding: 20px;
    overflow-y: auto;
    z-index: 1000;
    transition: var(--transition-base);
}

.header-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profile-section {
    text-align: center;
    margin-bottom: 15px;
    position: relative;
}

.profile-img {
    width: 90px;
    height: 90px;
    margin: 0 auto 12px;
    position: relative;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.status-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 14px;
    height: 14px;
    background: var(--color-success);
    border: 2px solid var(--color-bg);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.profile-info .name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info .role {
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 500;
}

/* Navigation */
.navmenu ul {
    list-style: none;
    margin-bottom: 20px;
}

.navmenu li {
    margin-bottom: 2px;
}

.navmenu a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: var(--color-text-light);
    border-radius: 10px;
    transition: var(--transition-base);
    font-weight: 500;
    font-size: 14px;
}

.navmenu a i {
    font-size: 18px;
    margin-right: 10px;
    min-width: 20px;
}

.navmenu a:hover,
.navmenu a.active {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: 8px;
    color: var(--color-text-light);
    font-size: 16px;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* CTA Button */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    margin-top: auto;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Header Toggle (Mobile) */
.header-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 1001;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main {
    margin-left: 280px;
    min-height: 100vh;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.light-background {
    background: var(--color-bg-alt);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-description {
    color: var(--color-text-light);
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0.95;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
            radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
            radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particles 20s linear infinite;
}

@keyframes particles {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50px);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    color: white;
}

.greeting {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    display: block;
    opacity: 0.9;
}

.hero-title {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, #a8d5ff 50%, #c7f0db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 4px 20px rgba(255, 255, 255, 0.3));
}

.hero-subtitle {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 25px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.typed-wrapper {
    position: relative;
}

.typed {
    color: #FFD166;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 12px;
    transition: var(--transition-base);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    color: var(--color-primary);
}

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

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

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 500;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    z-index: 2;
    opacity: 0.8;
}

.scroll-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

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

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.about-image:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    opacity: 0;
    transition: var(--transition-base);
}

.about-image:hover .image-overlay {
    opacity: 0.3;
}

.about-content h3 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.about-content .lead {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-content p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    transition: var(--transition-base);
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.info-item > i {
    font-size: 24px;
    color: var(--color-primary);
    min-width: 24px;
    flex-shrink: 0;
}

.info-details {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 12px;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 15px;
    color: var(--color-text-dark);
    font-weight: 600;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* ============================================
   SKILLS SECTION - Modern Compact Design
   ============================================ */
.skills-wrapper {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.skills-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.skill-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.skill-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.skill-category-label {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    flex-shrink: 0;
    position: sticky;
    top: 0;
}

.skill-category-label i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    border-radius: 10px;
    font-size: 18px;
    box-shadow: 0 3px 12px rgba(9, 105, 218, 0.3);
}

.skill-category-label span {
    font-weight: 700;
    font-size: 15px;
    color: var(--color-text-dark);
    letter-spacing: 0.3px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.skill-tag {
    padding: 6px 14px;
    background: var(--color-bg-alt);
    border: 1.5px solid transparent;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12.5px;
    color: var(--color-text);
    transition: all var(--transition-base);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(9, 105, 218, 0.1), transparent);
    transition: left 0.5s;
}

.skill-tag:hover::before {
    left: 100%;
}

.skill-tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 5px 15px rgba(9, 105, 218, 0.2);
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: white;
}

/* Premium/Core Skills Highlighting */
.skill-tag.premium {
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.1) 0%, rgba(31, 136, 61, 0.1) 100%);
    border: 1.5px solid rgba(9, 105, 218, 0.3);
    color: var(--color-primary);
    font-weight: 600;
    position: relative;
}

.skill-tag.premium::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.skill-tag.premium:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(9, 105, 218, 0.4);
}

/* Responsive adjustments for skills */
@media (max-width: 768px) {
    .skills-wrapper {
        padding: 20px;
    }
    
    .skill-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
        padding-bottom: 16px;
    }
    
    .skill-category-label {
        min-width: auto;
        position: relative;
    }
    
    .skill-tags {
        width: 100%;
    }
    
    .skill-tag {
        font-size: 11.5px;
        padding: 5px 12px;
    }
}

@media (max-width: 576px) {
    .skills-wrapper {
        padding: 18px;
    }
    
    .skill-category-label i {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .skill-category-label span {
        font-size: 14px;
    }
}

/* ============================================
   RESUME SECTION
   ============================================ */
.resume-section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-text-dark);
}

.resume-section-title i {
    color: var(--color-primary);
    font-size: 32px;
}

.resume-item {
    position: relative;
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    border-left: 4px solid var(--color-primary);
    transition: var(--transition-base);
    display: flex;
    gap: 15px;
}

.resume-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.resume-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
}

.resume-content {
    flex: 1;
}

.resume-item h4 {
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--color-text-dark);
    line-height: 1.3;
}

.resume-item h5 {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.company, .institution, .location {
    color: var(--color-text-light);
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.resume-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-item ul li {
    color: var(--color-text-dark);
    font-size: 13.5px;
    margin-left: 0;
    padding-left: 0;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.5;
}

.resume-item ul li::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 7px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}
/* Certifications */
.certifications {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.cert-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-dark);
}

.cert-title i {
    color: var(--color-primary);
    font-size: 24px;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-bg-alt);
    border-radius: 10px;
    transition: var(--transition-base);
}

.cert-item:hover {
    background: var(--color-border);
}

.cert-item i {
    color: var(--color-success);
    font-size: 20px;
}

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

/* ============================================
   PORTFOLIO SECTION
   ============================================ */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 28px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition-base);
}

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

.portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-base);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    gap: 15px;
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 20px;
    transition: var(--transition-base);
}

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

.portfolio-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.portfolio-info h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--color-text-dark);
}

.portfolio-info p {
    color: var(--color-text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tags span {
    padding: 5px 12px;
    background: var(--color-bg-alt);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-info {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 32px;
    margin-bottom: 15px;
    color: var(--color-text-dark);
    text-align: center;
}

.contact-info > p {
    color: var(--color-text-light);
    margin-bottom: 40px;
    line-height: 1.8;
    text-align: center;
    font-size: 16px;
}

.info-items {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-info .info-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    transition: var(--transition-base);
    align-items: flex-start;
}

.contact-info .info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.info-content h4 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--color-text-dark);
}

.info-content p {
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.6;
}

.social-connect {
    text-align: center;
    padding-top: 20px;
}

.social-connect h4 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.social-connect .social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-connect .social-links a {
    width: 50px;
    height: 50px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 22px;
    transition: var(--transition-base);
}

.social-connect .social-links a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 25px;
}

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition-base);
    background: var(--color-bg);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

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

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.form-messages {
    margin-bottom: 20px;
}

.loading,
.error-message,
.sent-message {
    display: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 500;
}

.loading {
    background: var(--color-bg-alt);
    color: var(--color-text);
}

.error-message {
    background: #fee;
    color: var(--color-error);
}

.sent-message {
    background: #efe;
    color: var(--color-success);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, #1a1f2e 0%, #2d3748 100%);
    color: white;
    padding: 60px 0 30px;
    margin-left: 280px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(9, 105, 218, 0.5), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-info h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: var(--transition-base);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--color-primary-light);
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: var(--transition-base);
    backdrop-filter: blur(10px);
}

.footer-social a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    font-size: 14px;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 999;
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-bg-alt);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1199px) {
    .header {
        left: -280px;
    }

    .header.header-show {
        left: 0;
    }

    .main {
        margin-left: 0;
    }

    .footer {
        margin-left: 0;
    }

    .header-toggle {
        display: flex;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-stats {
        gap: 30px;
    }

    .section-title {
        font-size: 32px;
    }

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

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

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

    .contact-info {
        padding: 30px;
    }

    .info-items {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .portfolio-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .stat-number {
        font-size: 36px;
    }

    .contact-info {
        padding: 25px;
    }

    .contact-info h3 {
        font-size: 26px;
    }

    .social-connect .social-links {
        flex-wrap: wrap;
    }

    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.aos-init.aos-animate {
    transition-duration: 0.6s;
}

/* Ensure smooth transitions for dynamically loaded content */
.portfolio-container .portfolio-item {
    transition: var(--transition-base);
}

.isotope-item {
    z-index: 1;
}

.isotope-hidden {
    z-index: 0;
}

/* ============================================
   PORTFOLIO DETAILS PAGE STYLES
   ============================================ */
.breadcrumb-section {
    padding: 100px 0 60px;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.breadcrumb-custom {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    gap: 10px;
}

.breadcrumb-custom li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.breadcrumb-custom li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    opacity: 0.5;
}

.breadcrumb-custom a {
    color: white;
    text-decoration: none;
    transition: var(--transition-base);
}

.breadcrumb-custom a:hover {
    color: var(--color-accent);
}

.breadcrumb-custom .active {
    color: rgba(255, 255, 255, 0.6);
}

.page-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.project-gallery {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 40px;
}

.project-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.project-description {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.project-description h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.project-description h3 {
    font-size: 24px;
    margin-top: 35px;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.project-description p {
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 20px;
}

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

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: var(--color-success);
    font-size: 20px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.result-card {
    text-align: center;
    padding: 25px;
    background: var(--color-bg-alt);
    border-radius: 12px;
    transition: var(--transition-base);
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.result-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.result-card h4 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--color-primary);
}

.result-card p {
    margin: 0;
    font-size: 14px;
    color: var(--color-text-light);
}

.project-info-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 100px;
}

.project-info-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text-dark);
}

.project-info-card h3 i {
    color: var(--color-primary);
    font-size: 24px;
}

.project-info-card .info-item {
    display: flex;
    flex-direction: column;
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
}

.project-info-card .info-item:last-of-type {
    border-bottom: none;
}

.info-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    font-size: 14px;
    color: var(--color-primary);
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-dark);
}

.info-value a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-base);
}

.info-value a:hover {
    color: var(--color-primary-dark);
}

.tech-stack-card {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--color-border);
}

.tech-stack-card h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-dark);
}

.tech-stack-card h4 i {
    color: var(--color-primary);
    font-size: 18px;
}

.tech-stack-card .tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack-card .tech-tag {
    padding: 6px 14px;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition-base);
}

.tech-stack-card .tech-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.btn-back,
.btn-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-base);
    text-decoration: none;
}

.btn-back {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 2px solid var(--color-border);
}

.btn-back:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateX(-3px);
}

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

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: white;
}

@media (max-width: 992px) {
    .project-info-card {
        position: relative;
        top: 0;
    }

    .page-title {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .project-description {
        padding: 25px;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}