:root {
    /* Light Theme */
    --primary-color: #4361ee;
    --secondary-color: #3a0ca3;
    --accent-color: #f72585;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

    /* RGB values for rgba backgrounds */
    --bg-color-rgb: 255, 255, 255;
    --bg-secondary-rgb: 248, 249, 250;
    --primary-color-rgb: 67, 97, 238;
    --accent-color-rgb: 247, 37, 133;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    --gradient-accent: linear-gradient(135deg, #f72585 0%, #7209b7 100%);

    /* Typography */
    --font-family: 'Inter', sans-serif;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary-color: #4895ef;
    --secondary-color: #4361ee;
    --accent-color: #f72585;
    --text-color: #f8f9fa;
    --text-light: #adb5bd;
    --bg-color: #121212;
    --bg-secondary: #1a1a1a;
    --card-bg: #1e1e1e;
    --border-color: #2d2d2d;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
    --bg-color-rgb: 18, 18, 18;
    --bg-secondary-rgb: 26, 26, 26;
    --primary-color-rgb: 72, 149, 239;
    --accent-color-rgb: 247, 37, 133;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
}

body.menu-open {
    overflow: hidden;
}

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

/*  TYPOGRAPHY  */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

/*  BUTTONS  */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-height: 44px;
}

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

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

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

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

/*  HEADER & NAVIGATION  */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(var(--bg-color-rgb), 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    z-index: 1002;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

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

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

@keyframes slideIn {
    from {
        width: 0;
        left: 50%;
    }

    to {
        width: 100%;
        left: 0;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: rotate(15deg);
}

/* MENU TOGGLE WITH ANIMATION */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-toggle:hover {
    background: var(--bg-secondary);
}

.menu-toggle .fa-bars {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle .fa-times {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active .fa-bars {
    opacity: 0;
    transform: rotate(90deg);
}

.menu-toggle.active .fa-times {
    opacity: 1;
    transform: rotate(0deg);
}

/* MOBILE MENU WITH SMOOTH ANIMATIONS */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(var(--bg-color-rgb), 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(var(--primary-color-rgb), 0.1) 0%,
            rgba(var(--accent-color-rgb), 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.mobile-menu.active::before {
    opacity: 1;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 1002;
    opacity: 0;
    transform: rotate(90deg);
    transition: opacity 0.3s ease 0.4s,
        transform 0.3s ease 0.4s,
        background 0.3s ease;
}

.mobile-menu.active .mobile-menu-close {
    opacity: 1;
    transform: rotate(0deg);
}

.mobile-menu-close:hover {
    background: var(--bg-secondary);
    transform: rotate(180deg);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transform: translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s,
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-link {
    font-size: 28px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    padding: 15px 0;
    display: block;
    position: relative;
    overflow: hidden;
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.3s ease,
        transform 0.3s ease;
}

.mobile-menu.active .mobile-nav-link {
    transform: translateX(0);
    opacity: 1;
}

/* Stagger animation for each link */
.mobile-menu.active .mobile-nav-link:nth-child(1) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-nav-link:nth-child(2) {
    transition-delay: 0.25s;
}

.mobile-menu.active .mobile-nav-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-nav-link:nth-child(4) {
    transition-delay: 0.35s;
}

.mobile-menu.active .mobile-nav-link:nth-child(5) {
    transition-delay: 0.4s;
}

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

.mobile-nav-link:hover {
    color: var(--primary-color);
    transform: translateX(10px);
}

.mobile-nav-link:hover::before {
    left: 0;
}

/*  HERO SECTION  */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(135deg,
            rgba(67, 97, 238, 0.05) 0%,
            rgba(58, 12, 163, 0.05) 100%);
    overflow: hidden;
}

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

.hero-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
   
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.hero-title {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 24px;
}

.hero-description {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    min-width: 80px;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.image-container {
    position: relative;
    width: 380px;
    height: 380px;
    max-width: 100%;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 8px solid var(--card-bg);
    box-shadow: var(--shadow-lg);
    
}

@keyframes profileFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        transform: translateY(-10px) rotate(1deg);
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 60%;
    }

    50% {
        transform: translateY(-5px) rotate(-1deg);
        border-radius: 30% 70% 60% 40% / 50% 30% 70% 50%;
    }

    75% {
        transform: translateY(-15px) rotate(0.5deg);
        border-radius: 35% 65% 65% 35% / 35% 35% 65% 65%;
    }
}

.image-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 2px solid var(--primary-color);
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*  SECTIONS  */
.section {
    padding: 100px 0;
}

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

.section-title {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(16px, 1.5vw, 18px);
    color: var(--text-light);
}

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

.about-text {
    font-size: clamp(16px, 1.8vw, 18px);
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.about-details {
    margin-top: 40px;
}

.detail-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.detail-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.detail-item h4 {
    margin-bottom: 4px;
    font-size: 18px;
}

.detail-muted {
    color: var(--text-light);
    font-size: 14px;
}

.code-snippet {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}

.code-snippet:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.code-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.code-header span:nth-child(2) {
    background: #ffbd2e;
}

.code-header span:nth-child(3) {
    background: #27ca3f;
}

.code-snippet pre {
    overflow-x: auto;
    color: var(--text-color);
    font-family: 'Courier New', monospace;
    font-size: clamp(12px, 1.5vw, 14px);
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.code-snippet code {
    display: block;
    padding: 10px 0;
}

/*  SKILLS SECTION  */
.skills-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.category {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: clamp(18px, 2vw, 20px);
    margin-bottom: 24px;
}

.category-title i {
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
}

/* Skills Section - Tag-Based Design */
.skills-showcase {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.skills-group {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 28px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.group-header i {
    font-size: 28px;
    color: var(--primary-color);
}

.group-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills-tags span {
    background: var(--bg-secondary);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.skills-tags span:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    border-color: transparent;
}

.skills-note {
    margin-top: 18px;
    font-size: 0.85rem;
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb), 0.1);
    padding: 8px 12px;
    border-radius: 12px;
    display: inline-block;
}
.skill-note a {
    color: var(--primary-color);
    text-decoration: none;
  font-weight: bold;
    transition: var(--transition);
}

.skills-extra {
    max-width: 900px;
    margin: 30px auto 0;
}

.extra-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 20px 28px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    border-left: 4px solid var(--primary-color);
}

.extra-card i {
    font-size: 28px;
    color: var(--primary-color);
}

.extra-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.extra-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}
.extra-card p a{
    text-decoration: none;
    color: var(--primary-color);
}
@media (max-width: 768px) {
    .skills-group {
        padding: 20px;
    }

    .group-header h3 {
        font-size: 1.3rem;
    }

    .skills-tags span {
        padding: 6px 14px;
        font-size: 0.85rem;
    }

    .extra-card {
        padding: 16px 20px;
    }
}

/*  PROJECTS SECTION  */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 30px;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    min-height: 40px;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--gradient-primary);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 1;
    transform: translateY(0);
    height: 100%;
}

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

.project-image {
    height: 200px;
    overflow: hidden;
    width: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
}

.project-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.project-title {
    font-size: clamp(18px, 2vw, 20px);
    margin-bottom: 12px;
    line-height: 1.3;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 4px 0;
}

.project-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

/*  CONTACT SECTION  */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding-right: 20px;
}

.contact-title {
    font-size: clamp(24px, 3vw, 28px);
    margin-bottom: 16px;
}

.contact-text {
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-item h4 {
    margin-bottom: 4px;
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px) rotate(5deg);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    font-family: var(--font-family);
    font-size: 16px;
    transition: var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

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

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

button[type="submit"] {
    width: 100%;
    position: relative;
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    position: absolute;
    left: calc(50% - 10px);
    top: calc(50% - 10px);
}

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

/*  FOOTER  */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0;
    text-align: center;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-text {
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 14px;
}

/*  BACK TO TOP  */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 100;
    min-width: 50px;
    min-height: 50px;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

/*  MODAL  */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-content {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: successIcon 0.6s ease;
}

@keyframes successIcon {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.modal-icon.success {
    color: #4CAF50;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 16px;
}

.modal-text {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.5;
}
/* About Section - New Modern Design */
.about-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

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

.about-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.about-icon-large {
    width: 65px;
    height: 65px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.about-icon-large i {
    font-size: 32px;
    color: white;
}

.about-lead {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
    color: var(--text-color);
}

.about-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.about-list li i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
}

.about-list li i.fa-check-circle {
    color: #10b981;
}

.about-list li i.fa-code,
.about-list li i.fa-mobile-alt,
.about-list li i.fa-database,
.about-list li i.fa-cloud {
    color: var(--primary-color);
}

.about-quick-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
}

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

.fact-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.fact-item:hover {
    transform: translateY(-2px);
    background: var(--gradient-primary);
}

.fact-item:hover i,
.fact-item:hover span {
    color: white;
}

@media (max-width: 768px) {
    .about-grid-modern {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-card {
        padding: 28px 24px;
    }

    .about-lead {
        font-size: 1.2rem;
    }

    .about-quick-facts {
        gap: 12px;
    }

    .fact-item {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/*  RESPONSIVE DESIGN  */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        order: -1;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }

    .hero-title {
        font-size: clamp(28px, 4vw, 32px);
    }

    .contact-info {
        padding-right: 0;
    }
}


@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        max-width: 540px;
        padding: 0 16px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-actions .btn-primary {
        display: none;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: clamp(26px, 5vw, 30px);
    }

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

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

    .hero-stats {
        justify-content: space-between;
        gap: 30px;
    }

    .stat {
        flex: 1;
        min-width: auto;
    }

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

    .section-title {
        font-size: clamp(24px, 4vw, 28px);
    }

    .section {
        padding: 80px 0;
    }

    .category,
    .code-snippet,
    .project-card {
        padding: 24px;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .mobile-menu-content {
        max-width: 280px;
    }

    .mobile-nav-link {
        font-size: 24px;
        padding: 12px 0;
    }

    .mobile-menu-close {
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .section {
        padding: 60px 0;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }

    .hero-title {
        font-size: clamp(24px, 6vw, 28px);
    }

    .hero-description {
        font-size: 16px;
    }

    .image-container {
        width: 250px;
        height: 250px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .stat {
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

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

    .project-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .project-filters::-webkit-scrollbar {
        height: 4px;
    }

    .project-filters::-webkit-scrollbar-track {
        background: var(--bg-secondary);
    }

    .project-filters::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
    }

    .filter-btn {
        flex-shrink: 0;
    }

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

    .project-card {
        margin: 0;
    }

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

    .btn {
        padding: 14px 20px;
        min-height: 48px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 14px;
    }

    .mobile-nav-link {
        font-size: 22px;
        padding: 10px 0;
    }

    .mobile-menu-content {
        max-width: 250px;
    }

    .mobile-menu-close {
        top: 15px;
        right: 15px;
        font-size: 20px;
    }

    .modal-content {
        padding: 30px 20px;
    }
  
}

@media (max-width: 480px) {
    .hero-actions {
        gap: 12px;
    }

    .image-container {
        width: 220px;
        height: 220px;
    }

    .hero-stats {
        gap: 15px;
    }

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

    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 20px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }
}

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

    .image-container {
        width: 200px;
        height: 200px;
    }

    .hero-badge {
        font-size: 11px;
    }

    .project-tags {
        gap: 6px;
    }

    .tag {
        font-size: 11px;
        padding: 3px 10px;
    }

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

    .mobile-nav-link {
        font-size: 20px;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Print styles */
@media print {

    .header,
    .footer,
    .back-to-top,
    .contact-form,
    .theme-toggle,
    .menu-toggle,
    .mobile-menu {
        display: none !important;
    }

    .hero,
    .section {
        padding: 40px 0 !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
        background: white !important;
        color: black !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    a {
        color: #000 !important;
        text-decoration: none;
    }

    .btn {
        display: none !important;
    }
}