.rahat-title h3{
    color: black;
    text-align: center;
    text-transform: uppercase;
    padding: 5px;
    font-family: sans;
    margin: 30px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #2563eb;

}
/* .rahat-title h3{
    margin: 30px;
    background-color: rgba(0, 0, 0, 0.8);

    color: black;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #2563eb;
} */


/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: #2563eb;
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color:#fff;
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}
.fa-solid {
    color: white;
    margin: 22px 0 0 13px;
}
/* ========================================
   1. RESET & BASE STYLES
   ======================================== */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ========================================
   2. CUSTOM CURSOR
   ======================================== */

.cursor {
    width: 10px;
    height: 10px;
    background: #2563eb;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border: 2px solid #2563eb;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: transform 0.3s;
    transform: translate(-50%, -50%);
    opacity: 0.3;
}

/* ========================================
   3. ANIMATIONS & KEYFRAMES
   ======================================== */

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

@keyframes revealChar {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   4. SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
    z-index: 1000;
    transition: width 0.3s;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
}

/* ========================================
   5. PRELOADER
   ======================================== */

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2563eb;
    border-radius: 50%;
    animation: rotate 1s linear infinite;
}

/* ========================================
   6. TYPOGRAPHY & UTILITIES
   ======================================== */

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 2px;
    animation: pulse 2s infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 2px;
    filter: blur(4px);
    opacity: 0.5;
}

.highlight {
    color: #2563eb;
    position: relative;
    display: inline-block;
}

/* .highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: rgba(37, 99, 235, 0.1);
    z-index: -1;
    transform: skewX(-15deg);
} */

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

@media (max-width: 480px) {
    .btn {
        width: 100%;
        text-align: center;
        white-space: normal;
    }
}

.primary-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.secondary-btn {
    background-color: transparent;
    color: #2563eb;
    border: 2px solid #2563eb;
}

.secondary-btn:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
/* ========================================
    7. HEADER & NAVIGATION - ENHANCED
    ======================================== */

/* Header Container */
header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position:fixed;
    top: 0;
    z-index: 1000;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);

}

/* Header on Scroll */
header.scrolled {
    padding: 0.3rem 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 25px rgba(37, 99, 235, 0.15);
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #2563eb, #7c3aed) 1;
}

/* Header Hidden on Scroll Down (optional) */
/* header.header-hidden {
    transform: translateY(-100%);
} */

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.8rem 5%;
    width: 100%;
    position: relative;
}

/* Logo Container */
.logo {
    position: relative;
    z-index: 1001;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.logo-text span {
    display: inline-block;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text:hover span {
    transform: scale(1.2) rotate(5deg);
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, transparent 70%);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.logo:hover .logo-glow {
    opacity: 1;
}

/* Navigation Menu - Desktop */
.nav-menu {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
    color: #334155;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    border-radius: 50px;
    display: inline-block;
}

/* Hover Effect */
.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 70%;
}

.nav-link:hover {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.1);
    font-weight: 600;
}

/* Nav Actions Container */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* CV Button - Enhanced */
.cv-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    cursor: pointer;
    z-index: 1;
}

/* Shine Effect */
.cv-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.cv-button:hover::before {
    left: 100%;
}

.cv-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.cv-button:active {
    transform: translateY(-1px);
}

.cv-text {
    margin-right: 0.8rem;
    position: relative;
}

/* Open Badge with Pulse Dot */
.open-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background-color: #10b981;
    border-radius: 50%;
    opacity: 0.4;
    animation: pulse-ring 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

/* ========================================
    MOBILE MENU STYLES - ESSENTIAL
   ======================================== */

/* Hide desktop menu on mobile */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
    }
} 

@keyframes pulse-ring {
    0% {
        transform: scale(0.5);
        opacity: 0.5;
    }
    80%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Theme Toggle (Optional) */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: #2563eb;
    color: #fff;
    transform: rotate(15deg);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.hamburger .bar {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: left;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(2px, -2px);
    width: 110%;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(2px, 2px);
    width: 110%;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(37, 99, 235, 0.5));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

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

/* Mobile Menu - Enhanced for better UX */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    z-index: 1002;
    padding: 2rem;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    border-left: 3px solid transparent;
    border-image: linear-gradient(135deg, #2563eb, #7c3aed) 1;
}

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

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.mobile-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.close-menu {
    background: none;
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    color: #2563eb;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-menu:hover {
    background: rgba(37, 99, 235, 0.1);
    transform: rotate(90deg);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.mobile-nav-item {
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s ease;
}

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

.mobile-menu.active .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-nav-item:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-nav-item:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-item:nth-child(4) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-nav-item:nth-child(5) { transition-delay: 0.5s; }
.mobile-menu.active .mobile-nav-item:nth-child(6) { transition-delay: 0.6s; }

.mobile-nav-link {
    display: block;
    padding: 1rem 1.5rem;
    color: #334155;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s;
}

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

.mobile-nav-link:hover {
    background: linear-gradient(135deg, #2563eb10, #7c3aed10);
    color: #2563eb;
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.1);
}

.mobile-menu-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(37, 99, 235, 0.1);
    text-align: center;
}

.mobile-cv-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.mobile-cv-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}

.mobile-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mobile-social-links a {
    width: 45px;
    height: 45px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.mobile-social-links a:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    transform: translateY(-5px) rotate(360deg);
}

/* ========================================
    RESPONSIVE BREAKPOINTS
    ======================================== */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .navbar {
        padding: 1rem 5%;
    }
    
    .nav-link {
        font-size: 1.05rem;
        padding: 0.7rem 1.4rem;
    }
}

/* Desktop (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .navbar {
        padding: 0.8rem 4%;
    }
    
    .nav-menu {
        gap: 0.3rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .cv-button {
        padding: 0.4rem 0.4rem 0.4rem 1rem;
        font-size: 0.85rem;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (max-width: 991px) {
    .navbar {
        padding: 0.7rem 4%;
    }
    
    .nav-menu {
        display: none; /* Hide desktop menu */
    }
    
    .hamburger {
        display: flex; /* Show hamburger */
    }
    
    .nav-actions {
        gap: 0.5rem;
    }
    
    .cv-button {
        padding: 0.3rem 0.3rem 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .open-badge {
        padding: 0.2rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .pulse-dot {
        width: 6px;
        height: 6px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
}

/* Tablet Portrait (576px to 767px) */
@media (max-width: 767px) {
    .navbar {
        padding: 0.6rem 4%;
    }
    
    .cv-button {
        display: none; /* Hide CV button on smaller tablets */
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .mobile-menu {
        width: 80%;
    }
    
    .mobile-logo {
        font-size: 1.5rem;
    }
    
    .mobile-nav-link {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

/* Mobile Landscape (480px to 575px) */
@media (max-width: 575px) {
    .navbar {
        padding: 0.5rem 4%;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .hamburger {
        width: 25px;
        height: 18px;
    }
    
    .hamburger .bar {
        height: 2px;
    }
    
    .mobile-menu {
        width: 85%;
        padding: 1.5rem;
    }
    
    .mobile-menu-header {
        margin-bottom: 2rem;
    }
    
    .mobile-logo {
        font-size: 1.3rem;
    }
    
    .close-menu {
        font-size: 2rem;
        width: 35px;
        height: 35px;
    }
    
    .mobile-nav-link {
        padding: 0.7rem 1rem;
        font-size: 0.95rem;
    }
    
    .mobile-cv-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .mobile-social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Mobile Portrait (320px to 479px) */
@media (max-width: 479px) {
    .navbar {
        padding: 0.5rem 3%;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .logo-text span {
        transform: none !important; /* Disable animation on very small screens */
    }
    
    .hamburger {
        width: 22px;
        height: 16px;
    }
    
    .mobile-menu {
        width: 90%;
        padding: 1rem;
    }
    
    .mobile-logo {
        font-size: 1.2rem;
    }
    
    .close-menu {
        font-size: 1.8rem;
    }
    
    .mobile-nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .mobile-cv-button {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    
    .mobile-social-links {
        gap: 0.5rem;
    }
    
    .mobile-social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover {
        background: none;
        transform: none;
    }
    
    .nav-link:active {
        background: rgba(37, 99, 235, 0.1);
    }
    
    .cv-button:hover {
        transform: none;
    }
    
    .mobile-nav-link:hover {
        background: none;
        transform: none;
    }
    
    .mobile-nav-link:active {
        background: linear-gradient(135deg, #2563eb10, #7c3aed10);
    }
}

/* Height-based Media Queries */
@media (max-height: 600px) and (orientation: landscape) {
    .mobile-menu {
        padding: 1rem;
    }
    
    .mobile-menu-header {
        margin-bottom: 1rem;
    }
    
    .mobile-nav-item {
        margin-bottom: 0.2rem;
    }
    
    .mobile-nav-link {
        padding: 0.4rem 0.8rem;
    }
    
    .mobile-menu-footer {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .mobile-cv-button {
        padding: 0.5rem 1rem;
        margin-bottom: 0.5rem;
    }
}

/* Print Styles */
@media print {
    header {
        position: relative;
        box-shadow: none;
        border-bottom: 1px solid #000;
    }
    
    .nav-menu,
    .nav-actions,
    .hamburger,
    .menu-overlay,
    .mobile-menu {
        display: none !important;
    }
    
    .logo {
        -webkit-text-fill-color: #000;
        color: #000;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid transparent;
    }
    
    .nav-link:hover,
    .nav-link.active {
        border-color: #2563eb;
    }
    
    .cv-button {
        border: 2px solid #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .logo-text span:hover {
        transform: none;
    }
    
    .pulse-dot::before {
        animation: none;
    }
}
/* ========================================
   8. HERO SECTION
   ======================================== */

.hero {
    min-height: 90vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 0 5%;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    margin-top: 45px;
}

/* Hero Content */
.hero-content {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    max-width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInLeft 1s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: white;
    background-color: #2563eb;
    margin-bottom: 1rem;
    padding: 0 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    word-wrap: break-word;
    position: relative;
    display: inline-block;
}

/* .hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, transparent);
    animation: pulse 2s infinite;
} */

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: #0f0a0a;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

.hero-title .highlight {
    color: #2563eb;
    position: relative;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.hero-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    max-width: 500px;
    word-wrap: break-word;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s both;
}

/* Hero Image */
.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
    max-width: 100%;
    animation: fadeInRight 1s ease;
}


.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(pulse at 20% -20%, rgba(37,99,235,0.1), transparent 70%);
    border-radius: 0% 0% 226% 251% / 114% 114% 198% 225%;
    animation:  .3s infinite;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    margin-top: 60px;
    border-radius: 0% 0% 226% 251% / 124% 114% 198% 255%;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
    animation: float 6s ease-in-out infinite;
}

.hero-image:hover img {
    transform: scale(0.05);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 0.9s both;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.95rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* ========================================
   9. ABOUT SECTION
   ======================================== */

.about {
    padding: 80px 0;
    background-color: #f8fafc;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

/* .about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, #fff, transparent);
} */

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

/* About Image */
.about-image {
    flex: 1;
    min-width: 100px;
    text-align: center;
    max-width: 100%;
    position: relative;
    animation: fadeInLeft 1s ease;
}

.about-image img {
    max-width: 80%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.about-image:hover img {
    transform: scale(1.0);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

/* About Text */
.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 100%;
    animation: fadeInRight 1s ease;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
    word-wrap: break-word;
    position: relative;
    display: inline-block;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, transparent);
    animation: shimmer 3s infinite;
}

@media (max-width: 480px) {
    .about-text h3 {
        font-size: 1.5rem;
    }
}
@media (max-width: 768px) {
    .about-text h3 {
        font-size: 2rem;
    }
    .about-image img{
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s;

    z-index: 1;
    }
}

.about-text p {
    color: #666;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    line-height: 1.8;
}

/* About Info Grid */
.about-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
    width: 100%;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    word-wrap: break-word;
    padding: 0.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.info-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.info-item i {
    color: #2563eb;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.info-item:hover i {
    transform: scale(1.2);
}

/* ========================================
   10. SKILLS SECTION
   ======================================== */

.skills {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}


.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    width: 100%;
}

/* Skill Category */
.skill-category {
    animation: scaleIn 0.8s ease;
    animation-fill-mode: both;
}

.skill-category:nth-child(1) { animation-delay: 0.2s; }
.skill-category:nth-child(2) { animation-delay: 0.4s; }

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
    position: relative;
    padding-bottom: 0.5rem;
    word-wrap: break-word;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    animation: pulse 2s infinite;
}

/* Skill Items Grid */
.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s;
    text-align: center;
    word-wrap: break-word;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.5s ease;
    animation-fill-mode: both;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; }

.skill-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37,99,235,0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    transform: scale(0);
}

.skill-item:hover::before {
    opacity: 1;
    transform: scale(1);
}

.skill-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.skill-item i {
    font-size: 2.5rem;
    color: #2563eb;
    transition: all 0.3s;
}

.skill-item:hover i {
    transform: scale(1.2) rotate(360deg);
    color: #7c3aed;
}

/* ========================================
   11. SERVICES SECTION
   ======================================== */

.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc, #fff);
    width: 100%;
    overflow-x: hidden;
    position: relative;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

/* Service Cards */
.service-card {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    word-wrap: break-word;
    position: relative;
    overflow: hidden;
    animation: scaleIn 0.8s ease;
    animation-fill-mode: both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37,99,235,0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    transform: scale(0);
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(37, 99, 235, 0.2);
}

.service-card i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.service-card:hover i {
    transform: scale(1.2) rotate(360deg);
    color: #7c3aed;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #666;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ========================================
   12. PROJECTS SECTION
   ======================================== */

.projects {
    padding: 80px 0;
    background-color: #f8fafc;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* grid-template-columns: minmax(2,3); */
    gap: 2.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 2fr;
    }
}

/* Project Cards */
.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    width: 100%;
    position: relative;
    animation: scaleIn 0.8s ease;
    animation-fill-mode: both;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 0.1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 30px rgba(37, 99, 235, 0.2);
}

/* Project Image */
.project-image {
    height: 200px;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(37,99,235,0.1));
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

/* Project Info */
.project-info {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #333;
    word-wrap: break-word;
    transition: color 0.3s;
}

.project-card:hover .project-info h3 {
    color: #2563eb;
}

.project-info p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
}

/* Project Tech Stack */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tech span {
    background: linear-gradient(135deg, #2563eb20, #7c3aed20);
    color: #2563eb;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s;
}

.project-tech span:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .project-tech span {
        white-space: normal;
    }
}

/* Project Links */
.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #2563eb;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.project-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transition: width 0.3s;
}

.project-links a:hover::before {
    width: 100%;
}

.project-links a:hover {
    color: #7c3aed;
    transform: translateX(5px);
}

@media (max-width: 480px) {
    .project-links a {
        white-space: normal;
    }
}

.projects-more {
    text-align: center;
    animation: fadeInUp 1s ease;
}

/* ========================================
   13. CONTACT SECTION
   ======================================== */

.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa, #e9ecf0);
    width: 100%;
    overflow-x: hidden;
    position: relative;
}


.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    width: 100%;
}

/* Contact Info */
.contact-info {
    animation: fadeInLeft 1s ease;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #333;
    word-wrap: break-word;
    position: relative;
    display: inline-block;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, transparent);
    animation: pulse 2s infinite;
}

@media (max-width: 480px) {
    .contact-info h3 {
        font-size: 1.5rem;
    }
}

.contact-info p {
    color: #666;
    margin-bottom: 2rem;
    word-wrap: break-word;
    line-height: 1.8;
}

/* Contact Details */
.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    padding: 0.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.contact-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.2);
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.contact-item:hover i {
    transform: rotate(360deg) scale(1.1);
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.contact-item p {
    color: #666;
    margin-bottom: 0;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2563eb20, #7c3aed20);
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Contact Form */
.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 100%;
    animation: fadeInRight 1s ease;
    position: relative;
    overflow: hidden;
}



/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: all 0.3s;
    background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

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

/* ========================================
   14. FOOTER
   ======================================== */

footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    padding: 60px 0 20px;
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #2563eb);
    animation: gradientBG 3s linear infinite;
    background-size: 200% 200%;
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Footer Logo */
.footer-logo {
    animation: fadeInUp 1s ease;
}

.footer-logo .logo {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    display: inline-block;
    word-wrap: break-word;
    position: relative;
}

.footer-logo .logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, transparent);}

.footer-logo p {
    color: #cbd5e1;
    word-wrap: break-word;
    line-height: 1.8;
}

/* Footer Links */
.footer-links {
    animation: fadeInUp 1s ease 0.2s both;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    word-wrap: break-word;
}

.footer-links h4::after,
.footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #2563eb, transparent);
    animation: pulse 2s infinite;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
    transform: translateX(0);
    transition: transform 0.3s;
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer-links ul li a {
    color: #cbd5e1;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s;
}

.footer-links ul li a:hover::before {
    opacity: 1;
    left: -15px;
}

@media (max-width: 480px) {
    .footer-links ul li a {
        white-space: normal;
    }
}

.footer-links ul li a:hover {
    color: #2563eb;
    padding-left: 5px;
}

/* Newsletter */
.footer-newsletter {
    animation: fadeInUp 1s ease 0.4s both;
}

.newsletter-form {
    display: flex;
    margin-top: 1rem;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    min-width: 0;
    width: 100%;
    transition: all 0.3s;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 2px #2563eb;
}

.newsletter-form button {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    padding: 0 1rem;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.newsletter-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.newsletter-form button:hover::before {
    left: 100%;
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #cbd5e1;
    word-wrap: break-word;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease 0.6s both;
}

/* ========================================
   15. BACK TO TOP BUTTON
   ======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
    border: 2px solid #fff;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
}

.back-to-top i {
    transition: transform 0.3s;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* ========================================
   16. MOBILE RESPONSIVE (max-width: 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Header & Navigation */
    .hamburger {
        /* display: block; */
        z-index: 200;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;/
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.8rem;
        padding: 2rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
        z-index: 150;
        border-radius: 0 0 30px 30px;
        border-bottom: 3px solid #2563eb;
        opacity: 0.95;
        backdrop-filter: blur(10px);
        transition: top 0.3s ease;
    }

    .nav-menu.active {
        top: 70px;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0.2rem 0;
        opacity: 1;
        transform: none;
    }

    .nav-menu a {
        display: inline-block;
        padding: 0.6rem 1.5rem;
        font-weight: 600;
        font-size: 1.1rem;
        color: #1e293b;
        border-radius: 40px;
        transition: all 0.3s;
        width: auto;
        min-width: 150px;
        white-space: nowrap;
    }

    .nav-menu a::before {
        display: none;
    }

    .nav-menu a:hover {
        color: #2563eb;
        background-color: #2563eb20;
        transform: scale(1.05);
    }

    .cv-button {
        display: inline-flex;
        margin-right: 0.5rem;
        font-size: 0.8rem;
        padding: 0.2rem 0.2rem 0.2rem 0.8rem;
        max-width: calc(100% - 10px);
        animation: none;
    }
    
    .open-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 4rem 5%;
    }

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

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        text-align: center;
        width: 100%;
    }

    .hero-image {
        margin-top: 2rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }

    /* About Section */
    .about-content {
        gap: 2rem;
    }

    .about-text h3 {
        font-size: 1.5rem;
    }

    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links h4::after,
    .footer-newsletter h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links ul li a {
        display: inline-block;
    }

    .newsletter-form {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ========================================
   17. EXTRA SMALL DEVICES (max-width: 360px)
   ======================================== */

@media (max-width: 360px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-tech span {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .nav-menu a {
        white-space: normal;
        min-width: 120px;
        font-size: 1rem;
    }
}