/* ===================================
   Custom Portfolio Styles
   =================================== */

/* Import calligraphic font for signature */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --icon-color: #FFC563;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #6c757d;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.preloader-logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 197, 99, 0.6));
}

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

.preloader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 197, 99, 0.2);
    border-top: 4px solid #FFC563;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.preloader-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    animation: textPulse 2s ease-in-out infinite;
    margin-top: 15px;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

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

/* Prevent Flash of Unstyled Content */
body.loading {
    overflow: hidden;
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

/* ===================================
   Navigation - Redesigned
   =================================== */

#mainNav {
    padding: 1.2rem 0;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

#mainNav.scrolled {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 197, 99, 0.1);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 197, 99, 0.1);
}

.navbar-brand {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.navbar-logo {
    height: 45px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1) contrast(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    object-fit: contain;
}

.navbar-brand:hover .navbar-logo {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.2) contrast(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Logo hover glow effect */
.navbar-brand::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 197, 99, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: -1;
}

.navbar-brand:hover::before {
    width: 120%;
    height: 120%;
}

/* Mobile logo adjustments */
@media (max-width: 991px) {
    .navbar-logo {
        height: 40px;
    }
}

@media (max-width: 576px) {
    .navbar-logo {
        height: 35px;
    }
}

.navbar-toggler {
    border: 2px solid rgba(255, 197, 99, 0.5);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: #FFC563;
    background: rgba(255, 197, 99, 0.1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 197, 99, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 197, 99, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600;
    padding: 0.6rem 1.2rem !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 8px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FFC563, transparent);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #FFC563 !important;
    background: rgba(255, 197, 99, 0.1);
    transform: translateY(-2px);
}

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

.nav-link.active {
    color: #FFC563 !important;
    background: rgba(255, 197, 99, 0.15);
    box-shadow: 0 0 20px rgba(255, 197, 99, 0.2);
}

.nav-link.active::before {
    width: 70%;
    background: #FFC563;
}

/* Navigation Icon Indicators */
.nav-link::after {
    content: '•';
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    color: #FFC563;
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-link.active::after {
    opacity: 1;
}

/* Mobile Menu Enhancement */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid rgba(255, 197, 99, 0.2);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    
    .nav-link {
        padding: 1rem 1.5rem !important;
        border-radius: 8px;
        margin-bottom: 0.5rem;
    }
    
    .nav-link::after {
        right: 15px;
    }
}

/* ===================================
   Hero Section - Redesigned
   =================================== */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 197, 99, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    z-index: 0;
}

/* Animated Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatShape 25s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 197, 99, 0.3) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.25) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    animation-delay: 8s;
}

.shape-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.2) 0%, transparent 70%);
    top: 40%;
    left: 40%;
    animation-delay: 15s;
}

.floating-code {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.08;
}

.floating-code span {
    position: absolute;
    font-size: 4rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: rgba(255, 197, 99, 0.15);
    animation: floatCode 20s infinite ease-in-out;
    text-shadow: 0 0 20px rgba(255, 197, 99, 0.3);
}

.floating-code span:nth-child(1) {
    top: 8%;
    left: 8%;
    animation-delay: 0s;
    font-size: 5rem;
}

.floating-code span:nth-child(2) {
    top: 55%;
    right: 10%;
    animation-delay: 5s;
    font-size: 3.5rem;
}

.floating-code span:nth-child(3) {
    bottom: 15%;
    left: 15%;
    animation-delay: 10s;
    font-size: 4.5rem;
}

.floating-code span:nth-child(4) {
    top: 25%;
    right: 25%;
    animation-delay: 15s;
    font-size: 3rem;
}

/* Animated Grid Pattern */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 197, 99, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 197, 99, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
    z-index: 1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(80px, 80px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(0, 150px) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(-80px, 80px) rotate(270deg) scale(0.9);
    }
}

@keyframes floatCode {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.15;
    }
    25% {
        transform: translateY(-20px) rotate(3deg) scale(1.05);
        opacity: 0.25;
    }
    50% {
        transform: translateY(-40px) rotate(-3deg) scale(1.1);
        opacity: 0.3;
    }
    75% {
        transform: translateY(-20px) rotate(2deg) scale(1.05);
        opacity: 0.25;
    }
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 197, 99, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 197, 99, 0.8);
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    top: 40%;
    left: 30%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.particle:nth-child(3) {
    top: 60%;
    left: 50%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.particle:nth-child(4) {
    top: 30%;
    left: 70%;
    animation-delay: 1s;
    animation-duration: 13s;
}

.particle:nth-child(5) {
    top: 80%;
    left: 20%;
    animation-delay: 3s;
    animation-duration: 15s;
}

.particle:nth-child(6) {
    top: 15%;
    left: 85%;
    animation-delay: 5s;
    animation-duration: 17s;
}

.particle:nth-child(7) {
    top: 70%;
    left: 65%;
    animation-delay: 2.5s;
    animation-duration: 14s;
}

.particle:nth-child(8) {
    top: 50%;
    left: 15%;
    animation-delay: 4.5s;
    animation-duration: 16s;
}

.particle:nth-child(9) {
    top: 25%;
    left: 45%;
    animation-delay: 1.5s;
    animation-duration: 13s;
}

.particle:nth-child(10) {
    top: 85%;
    left: 80%;
    animation-delay: 3.5s;
    animation-duration: 15s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate(100px, -100px);
        opacity: 0.8;
    }
    90% {
        opacity: 0.5;
    }
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 50px 0;
}

.hero-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-label i {
    margin-right: 8px;
    color: var(--icon-color);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title .name-highlight {
    display: inline-block;
    font-size: 4.5rem;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

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

.hero-typing-wrapper {
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 2rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.typing-text {
    border-right: 3px solid #fff;
    padding-right: 10px;
    animation: typing 3s steps(30) 1s infinite;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
}

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

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 15px 35px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary.btn-hero {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
}

.btn-primary.btn-hero:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.btn-outline-hero {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-hero:hover {
    background: #fff;
    color: var(--primary-color);
    border-color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Hero Social */
.hero-social {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.social-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

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

.social-links-hero .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links-hero .social-link:hover {
    background: #fff;
    color: var(--icon-color);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
    border-color: #fff;
}

/* Hero Image Section */
.hero-image-section {
    position: relative;
    z-index: 2;
}

.hero-image-wrapper-new {
    position: relative;
    display: inline-block;
    animation: float 6s ease-in-out infinite;
}

.hero-image-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-image-new {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-image-container:hover .hero-image-new {
    transform: scale(1.1);
}

.hero-placeholder-new {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    color: rgba(255, 255, 255, 0.3);
}

/* Image Decorations */
.image-decoration {
    position: absolute;
    border-radius: 50%;
    border: 3px dashed rgba(255, 255, 255, 0.3);
}

.decoration-1 {
    width: 450px;
    height: 450px;
    top: -25px;
    left: -25px;
    animation: rotateClockwise 20s linear infinite;
}

.decoration-2 {
    width: 500px;
    height: 500px;
    top: -50px;
    left: -50px;
    animation: rotateCounterClockwise 25s linear infinite;
}

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

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

/* Floating Badges */
.floating-badge {
    position: absolute;
    background: #fff;
    color: var(--primary-color);
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: floatBadge 3s ease-in-out infinite;
    z-index: 3;
}

.floating-badge i {
    font-size: 1.1rem;
    color: var(--icon-color);
}

.badge-1 {
    top: 50px;
    right: -20px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 80px;
    left: -30px;
    animation-delay: 1.5s;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

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

/* Scroll Indicator */
.scroll-indicator-new {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.scroll-indicator-new a {
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.scroll-indicator-new a:hover {
    transform: translateY(5px);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
    animation: mouseScroll 2s infinite;
}

.wheel {
    width: 4px;
    height: 10px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheelMove 2s infinite;
}

@keyframes mouseScroll {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@keyframes wheelMove {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

.scroll-indicator-new span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

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

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

/* ===================================
   Sections
   =================================== */

.section-padding {
    padding: 100px 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ===================================
   About Section - Redesigned
   =================================== */

.about-section {
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.about-content {
    padding-right: 30px;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 30px;
}

.about-info-cards {
    display: grid;
    gap: 15px;
    margin: 30px 0;
}

.info-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left-color: var(--icon-color);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFC563 0%, #FFB03A 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.5rem;
    color: #fff;
}

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

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

.info-value {
    font-size: 1.1rem;
    color: var(--dark-color);
    font-weight: 500;
    text-decoration: none;
}

.info-value:hover {
    color: var(--icon-color);
}

.about-cta {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-download {
    background: var(--gradient);
    border: none;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

/* Education Section */
.education-section {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.education-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.education-timeline {
    position: relative;
}

.education-item {
    position: relative;
    padding-left: 80px;
    padding-bottom: 40px;
    border-left: 3px solid #e9ecef;
}

.education-item:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
}

.education-icon {
    position: absolute;
    left: -22px;
    top: 0;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #FFC563 0%, #FFB03A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(255, 197, 99, 0.4);
}

.education-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.education-content:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.education-date {
    display: inline-block;
    background: linear-gradient(135deg, #FFC563 0%, #FFB03A 100%);
    color: #fff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.education-date i {
    margin-right: 5px;
}

.education-degree {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.education-institution {
    font-size: 1.1rem;
    color: var(--icon-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.education-institution i {
    margin-right: 8px;
}

.education-field {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.education-field i {
    margin-right: 8px;
    color: var(--icon-color);
}

.education-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===================================
   Skills Section - Redesigned
   =================================== */

.skills-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.skill-category-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.skill-category-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.category-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #FFC563 0%, #FFB03A 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 5px 15px rgba(255, 197, 99, 0.4);
}

.category-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.category-count {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.skills-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item-new {
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.skill-item-new:hover {
    background: #e9ecef;
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.skill-icon-wrapper {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(255, 197, 99, 0.2), rgba(255, 176, 58, 0.1));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.skill-item-new:hover .skill-icon-wrapper {
    background: linear-gradient(135deg, var(--icon-color), #FFB03A);
    transform: rotate(5deg) scale(1.05);
}

.skill-name-simple {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-name {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.05rem;
}

.skill-icon-main {
    font-size: 1rem;
    color: var(--icon-color);
}

.skill-percentage {
    font-weight: 700;
    color: var(--icon-color);
    font-size: 1.1rem;
}

.percentage-number {
    font-size: 1.2rem;
}

.skill-progress-wrapper {
    position: relative;
}

.skill-progress-bar {
    height: 8px;
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    position: relative;
    transition: width 1.5s ease-in-out;
}

.progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shine 2s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

/* Floating Skill Icons */
.skills-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.skill-float-icon {
    position: absolute;
    font-size: 3rem;
    color: rgba(102, 126, 234, 0.1);
    animation: floatSkill 15s infinite ease-in-out;
}

.skill-float-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.skill-float-2 {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.skill-float-3 {
    bottom: 30%;
    left: 15%;
    animation-delay: 4s;
}

.skill-float-4 {
    bottom: 20%;
    right: 20%;
    animation-delay: 6s;
}

.skill-float-5 {
    top: 50%;
    left: 50%;
    animation-delay: 8s;
}

.skill-float-6 {
    top: 70%;
    right: 5%;
    animation-delay: 10s;
}

@keyframes floatSkill {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.2;
    }
}

/* Section Label (used across sections) */
.section-label {
    display: inline-block;
    background: rgba(255, 197, 99, 0.1);
    color: var(--icon-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 2px solid rgba(255, 197, 99, 0.3);
}

.section-label i {
    color: var(--icon-color);
}

/* ===================================
   Experience Section
   =================================== */

.experience-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.experience-date {
    color: var(--text-light);
    font-weight: 500;
}

/* ===================================
   Projects Section
   =================================== */

.project-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

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

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.project-links {
    display: flex;
    gap: 1rem;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h5 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.project-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech .badge {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
}

/* ===================================
   Contact Section
   =================================== */

.contact-form-wrapper {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

.form-floating > label {
    padding-left: 2.5rem;
}

.form-floating > label i {
    position: absolute;
    left: 1rem;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* ===================================
   Buttons
   =================================== */

.btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    background: var(--gradient);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.3);
}

/* ===================================
   Footer
   =================================== */

/* ===================================
   Footer Section
   =================================== */

.footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 197, 99, 0.5) 50%, 
        transparent 100%);
}

.footer-brand {
    margin-bottom: 1rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    filter: brightness(1.2) drop-shadow(0 0 10px rgba(255, 197, 99, 0.3));
    transition: all 0.3s ease;
}

.footer-logo:hover {
    filter: brightness(1.4) drop-shadow(0 0 20px rgba(255, 197, 99, 0.5));
    transform: scale(1.05);
}

.footer-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 18px;
    font-weight: 600;
    color: var(--icon-color);
    margin-bottom: 0.3rem;
    margin-top: 0.3rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 0;
}

.footer-heading {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--icon-color) 0%, transparent 100%);
    border-radius: 2px;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 20px;
}

.footer-links a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--icon-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--icon-color);
    padding-left: 25px;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

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

.footer-social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 197, 99, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color);
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.footer-social-link:hover {
    background: linear-gradient(135deg, var(--icon-color) 0%, #ffb03a 100%);
    color: #1a1a2e;
    border-color: var(--icon-color);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 8px 20px rgba(255, 197, 99, 0.4);
}

.footer-contact {
    font-size: 14px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--icon-color);
    width: 20px;
    text-align: center;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-admin-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.3s ease;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
}

.footer-admin-link:hover {
    color: var(--icon-color);
    background: rgba(255, 197, 99, 0.1);
}

@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0 0;
    }
    
    .footer-brand,
    .footer-links,
    .footer-social {
        text-align: center;
    }
    
    .footer-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links a {
        padding-left: 0;
    }
    
    .footer-links a::before {
        display: none;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .footer-bottom {
        margin-top: 1rem;
    }
    
    .footer-logo {
        height: 35px;
    }
    
    .footer-tagline {
        font-size: 16px;
    }
    
    .footer-description {
        font-size: 12px;
    }
}

/* ===================================
   Blog Section
   =================================== */

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #FFC563 0%, #FFB03A 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

.blog-meta i {
    color: var(--icon-color);
    margin-right: 5px;
}

.blog-title {
    margin-bottom: 15px;
}

.blog-title-link {
    color: #333;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.blog-title-link:hover {
    color: var(--icon-color);
}

.blog-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

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

.tag {
    background: rgba(255, 197, 99, 0.1);
    color: var(--icon-color);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.btn-outline-primary {
    border-color: var(--icon-color);
    color: var(--icon-color);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--icon-color);
    border-color: var(--icon-color);
    color: #fff;
}

/* Blog Section Responsive */
@media (max-width: 768px) {
    .blog-content {
        padding: 20px;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog-tags {
        width: 100%;
    }
}

/* ===================================
   Back to Top Button
   =================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid rgba(255, 197, 99, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

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

.back-to-top-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
    transition: all 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 197, 99, 0.5);
    border-color: rgba(255, 197, 99, 0.8);
}

.back-to-top:hover .back-to-top-logo {
    filter: brightness(1.3) contrast(1.2);
    transform: scale(1.1);
}

/* Mobile adjustments */
@media (max-width: 576px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top-logo {
        width: 28px;
        height: 28px;
    }
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablets and Large Mobile (991px and below) */
@media (max-width: 991px) {
    /* Navbar - Mobile left drawer */
    #mainNav .navbar-brand {
        order: 2;
        margin-left: auto;
    }

    #mainNav .navbar-toggler {
        order: 1;
        z-index: 1102;
    }

    /* Enhanced left drawer menu */
    /* New Mobile Menu Styles - Glassmorphism */
.mobile-menu-container {
        position: fixed;
        top: 0;
        left: 0;
    width: 100%;
    height: 100%;
        z-index: 1100;
    display: flex;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.mobile-menu-container.show .mobile-menu {
    transform: translateX(0);
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-container.show .mobile-menu-backdrop {
    opacity: 1;
}

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

.mobile-menu {
    width: 85%;
    max-width: 360px;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(26, 26, 46, 0.98) 0%,
        rgba(22, 33, 62, 0.98) 50%,
        rgba(15, 52, 96, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    position: relative;
    z-index: 1101;
    padding: 0;
        overflow-y: auto;
        overflow-x: hidden;
    border-right: 1px solid rgba(255, 197, 99, 0.2);
    box-shadow: 
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 80px rgba(255, 197, 99, 0.15);
}

/* Animated background pattern */
.mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 197, 99, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(118, 75, 162, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundPulse 10s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Grid pattern overlay */
.mobile-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 197, 99, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 197, 99, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.8) 0%, 
        rgba(15, 52, 96, 0.8) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1099;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-container.show .mobile-menu-backdrop {
    opacity: 1;
    }

    /* Slide-in state */
    #mainNav .navbar-collapse.show {
        transform: translateX(0);
    }

    /* Drawer header */
    .drawer-header {
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, rgba(255, 197, 99, 0.12) 0%, rgba(255, 176, 58, 0.08) 100%);
        backdrop-filter: blur(10px);
        padding: 1.5rem 1.25rem;
        border-bottom: 1px solid rgba(255, 197, 99, 0.2);
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 10;
    }

    .drawer-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #fff;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .drawer-title i {
        color: var(--icon-color);
        font-size: 1rem;
    }

    .drawer-close {
        width: 36px;
        height: 36px;
        background: rgba(255, 197, 99, 0.15);
        border: 1px solid rgba(255, 197, 99, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--icon-color);
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .drawer-close:hover {
        background: rgba(255, 197, 99, 0.25);
        border-color: var(--icon-color);
        transform: rotate(90deg) scale(1.1);
    }

    /* Navigation list */
    #mainNav .navbar-collapse .navbar-nav {
        padding: 1rem 0;
        margin: 0;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Mobile menu close button */
    .mobile-menu-close {
        display: flex;
        justify-content: flex-end;
        padding: 1rem 1rem 0.5rem;
        position: sticky;
        top: 0;
        z-index: 10;
        background: #ffffff;
        border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    }
    
    .btn-close-menu {
        background: none;
        border: none;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.5rem;
        background: var(--primary-color);
        border: 2px solid #ffffff;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }
    
    .btn-close-menu:hover {
        background: var(--secondary-color);
        color: #ffffff;
        transform: rotate(90deg);
        box-shadow: 0 6px 15px rgba(102, 126, 234, 0.6);
    }

    /* Enhanced navigation links with icons */
    .mobile-menu-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 197, 99, 0.15);
    background: linear-gradient(135deg, 
        rgba(26, 26, 46, 0.95) 0%, 
        rgba(22, 33, 62, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 10;
    margin-bottom: 5px;
}

.mobile-menu-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(255, 197, 99, 0.05) 0%, 
        transparent 100%);
    pointer-events: none;
}

.mobile-menu-close-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
        position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.mobile-close-logo {
    height: 50px;
    width: auto;
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(255, 197, 99, 0.5));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-close-btn:hover .mobile-close-logo {
    transform: scale(1.1);
    filter: brightness(1.4) drop-shadow(0 0 25px rgba(255, 197, 99, 0.8));
}

.mobile-menu-close-btn:active .mobile-close-logo {
    transform: scale(0.95);
}

.mobile-nav-list {
    list-style: none;
    padding: 15px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.mobile-nav-list li {
    position: relative;
    width: 100%;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    height: 100%;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 197, 99, 0.2) 0%, 
        rgba(255, 176, 58, 0.15) 100%);
    transition: width 0.3s ease;
    border-radius: 14px;
}

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

.mobile-nav-link i {
    margin-right: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, 
        rgba(255, 197, 99, 0.9) 0%, 
        rgba(255, 176, 58, 0.9) 100%);
    color: #1a1a2e;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(255, 197, 99, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.mobile-nav-link:hover {
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.15) 0%, 
        rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 197, 99, 0.3);
}

.mobile-nav-link:hover i {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, 
        rgba(255, 197, 99, 1) 0%, 
        rgba(255, 176, 58, 1) 100%);
    box-shadow: 
        0 6px 18px rgba(255, 197, 99, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }

    /* Icon before each nav link */
    #mainNav .navbar-collapse .nav-link::before {
        content: '';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        color: #ffffff;
        flex-shrink: 0;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    }

    /* Specific icons for each page */
    #mainNav .navbar-collapse .nav-link[href="#home"]::before,
    #mainNav .navbar-collapse .nav-link[href*="index"]::before { content: '\f015'; }
    #mainNav .navbar-collapse .nav-link[href*="about"]::before { content: '\f007'; }
    #mainNav .navbar-collapse .nav-link[href*="skills"]::before { content: '\f0ad'; }
    #mainNav .navbar-collapse .nav-link[href*="experience"]::before { content: '\f0b1'; }
    #mainNav .navbar-collapse .nav-link[href*="projects"]::before { content: '\f1b2'; }
    #mainNav .navbar-collapse .nav-link[href*="blog"]::before { content: '\f1ea'; }
    #mainNav .navbar-collapse .nav-link[href*="contact"]::before { content: '\f0e0'; }

    /* Arrow indicator */
    #mainNav .navbar-collapse .nav-link::after {
        content: '\f054';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.7rem;
        color: var(--icon-color);
        margin-left: auto;
        opacity: 0;
        transform: translateX(-10px);
        transition: all 0.3s ease;
    }

    /* Hover state */
    #mainNav .navbar-collapse .nav-link:hover {
        background: rgba(102, 126, 234, 0.15);
        border-color: var(--primary-color);
        color: var(--primary-color) !important;
        transform: translateX(5px);
        padding-left: 1.75rem !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    #mainNav .navbar-collapse .nav-link:hover::before {
        background: var(--secondary-color);
        color: #ffffff;
        transform: scale(1.1) rotate(5deg);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    #mainNav .navbar-collapse .nav-link:hover::after {
        opacity: 1;
        transform: translateX(0);
    }

    /* Active state */
    #mainNav .navbar-collapse .nav-link.active {
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        border-color: #ffffff;
        color: #ffffff !important;
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
        transform: translateX(5px);
    }

    #mainNav .navbar-collapse .nav-link.active::before {
        background: #ffffff;
        color: var(--primary-color);
        box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
        transform: scale(1.1);
    }

    #mainNav .navbar-collapse .nav-link.active::after {
        opacity: 1;
        transform: translateX(0);
    }

    /* Backdrop for mobile drawer */
    /* Active state for mobile nav links */
.mobile-nav-link.active {
    background: linear-gradient(135deg, 
        rgba(255, 197, 99, 0.25) 0%, 
        rgba(255, 176, 58, 0.2) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 197, 99, 0.4);
    box-shadow: 
        0 4px 20px rgba(255, 197, 99, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 0 30px rgba(255, 197, 99, 0.15);
    transform: translateX(5px);
}

.mobile-nav-link.active::before {
    width: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 197, 99, 0.15) 0%, 
        rgba(255, 176, 58, 0.1) 100%);
}

.mobile-nav-link.active i {
    background: linear-gradient(135deg, 
        rgba(255, 197, 99, 1) 0%, 
        rgba(255, 176, 58, 1) 100%);
    color: #1a1a2e;
    transform: scale(1.1);
    box-shadow: 
        0 6px 20px rgba(255, 197, 99, 0.6),
        inset 0 2px 0 rgba(255, 255, 255, 0.5);
}

/* Add a glow effect to active link */
.mobile-nav-link.active::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--icon-color);
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(255, 197, 99, 0.9),
        0 0 30px rgba(255, 197, 99, 0.5);
    z-index: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

/* Mobile Menu Signature */
.mobile-menu-signature {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    pointer-events: none;
    user-select: none;
    z-index: 0;
    text-align: center;
    animation: signatureFadeIn 1.5s ease-out;
}

.signature-name {
    font-family: 'Dancing Script', cursive;
    font-size: 32px;
    font-weight: 700;
    color: rgba(255, 197, 99, 0.15);
    white-space: nowrap;
    text-shadow: 
        0 2px 10px rgba(255, 197, 99, 0.1),
        0 0 30px rgba(255, 197, 99, 0.05);
    letter-spacing: 2px;
    opacity: 0.8;
    margin-bottom: 5px;
}

.signature-tagline {
    font-family: 'Dancing Script', cursive;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 197, 99, 0.12);
    white-space: nowrap;
    text-shadow: 
        0 1px 5px rgba(255, 197, 99, 0.08),
        0 0 20px rgba(255, 197, 99, 0.03);
    letter-spacing: 1px;
    opacity: 0.7;
}

@keyframes signatureFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) rotate(-45deg) scale(0.8);
    }
    to {
        opacity: 0.8;
        transform: translateX(-50%) rotate(-45deg) scale(1);
    }
}

@keyframes glowPulse {
    0%, 100% { 
        opacity: 1;
        box-shadow: 
            0 0 15px rgba(255, 197, 99, 0.9),
            0 0 30px rgba(255, 197, 99, 0.5);
    }
    50% { 
        opacity: 0.7;
        box-shadow: 
            0 0 10px rgba(255, 197, 99, 0.7),
            0 0 20px rgba(255, 197, 99, 0.3);
    }
    }

    .mobile-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    /* Prevent body scroll when drawer open */
    body.drawer-open {
        overflow: hidden;
    }
    
    /* Fix for blur issues on mobile */
    #mainNav .navbar-collapse.show {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        -webkit-filter: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    /* Small mobile optimizations */
    @media (max-width: 576px) {
        #mainNav .navbar-collapse {
            width: 90%;
            max-width: 300px;
        }

        #mainNav .navbar-collapse .nav-link {
            padding: 1rem 1.25rem !important;
            font-size: 1rem;
            margin: 0.4rem 0.75rem;
        }
        
        .mobile-nav-list {
            grid-template-columns: 1fr;
            gap: 8px;
        }
        
        .mobile-nav-link {
            padding: 10px;
        }

        #mainNav .navbar-collapse .nav-link::before {
            width: 32px;
            height: 32px;
            font-size: 0.9rem;
        }

        .drawer-header {
            padding: 1.25rem 1rem;
        }

        .drawer-close {
            width: 32px;
            height: 32px;
            font-size: 1rem;
        }
    }

    /* Hero Section */
    .hero-content {
        padding: 30px 0;
    }

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

    .hero-title .name-highlight {
        font-size: 3.2rem;
    }

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

    .hero-description {
        max-width: 100%;
    }

    .hero-image-container {
        width: 350px;
        height: 350px;
        margin: 0 auto;
    }

    .decoration-1 {
        width: 400px;
        height: 400px;
    }

    .decoration-2 {
        width: 450px;
        height: 450px;
    }

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

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

    .hero-image-section {
        margin-top: 50px;
        text-align: center;
        display: flex;
        justify-content: center;
    }

    .hero-image-wrapper-new {
        margin: 0 auto;
    }

    /* Sections */
    .section-padding {
        padding: 80px 0;
    }

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

    /* Experience */
    .experience-header {
        flex-direction: column;
    }

    .experience-card {
        padding: 1.5rem;
    }

    /* Floating Badges */
    .floating-badge {
        font-size: 0.8rem;
        padding: 10px 16px;
    }

    /* Projects */
    .project-card {
        margin-bottom: 20px;
    }

    /* Skills */
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 2.5rem;
    }
}

/* Mobile Devices (767px and below) */
@media (max-width: 767px) {
    /* General */
    body {
        font-size: 14px;
    }

    /* Hero Section */
    .hero-content {
        padding: 20px 0;
    }

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

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

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

    .hero-description {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-image-container {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .hero-placeholder-new {
        font-size: 120px;
    }

    .decoration-1 {
        width: 320px;
        height: 320px;
    }

    .decoration-2 {
        width: 360px;
        height: 360px;
    }

    .hero-stats {
        gap: 20px;
        justify-content: space-around;
        flex-wrap: wrap;
    }

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

    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .floating-badge {
        font-size: 0.75rem;
        padding: 8px 14px;
    }

    .badge-1 {
        top: 20px;
        right: 10px;
    }

    .badge-2 {
        bottom: 40px;
        left: 10px;
    }

    .floating-code span {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .hero-social {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
    }

    .social-links-hero {
        justify-content: center;
    }

    /* Sections */
    .section-padding {
        padding: 60px 0;
    }

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

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

    /* Contact Form */
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-lg {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
    }
    
    /* About Section Mobile */
    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .about-info-cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .info-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        min-width: 0;
        overflow: hidden;
    }
    .about-info-cards .info-details { 
        max-width: 100%; 
        width: 100%; 
        overflow: hidden; 
    }
    .about-info-cards .info-value { 
        display: block; 
        max-width: 100%; 
        white-space: normal; 
        overflow-wrap: anywhere; 
        word-break: break-word;
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .info-icon {
        width: 50px;
        height: 50px;
    }
    
    .info-icon i {
        font-size: 1.2rem;
    }
    
    .about-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .about-cta .btn {
        width: 100%;
        text-align: center;
    }
    
    .education-section {
        padding: 25px 20px;
    }
    
    .education-title {
        font-size: 1.5rem;
    }
    
    .education-item {
        padding-left: 60px;
        padding-bottom: 30px;
    }
    
    .education-icon {
        left: -18px;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .education-content {
        padding: 20px;
    }
    
    .education-degree {
        font-size: 1.1rem;
    }

    .education-institution {
        font-size: 1rem;
    }
    
    /* Skills Section Mobile */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-category-card {
        padding: 20px;
    }
    
    .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .category-title {
        font-size: 1.3rem;
    }
    
    .skill-item-new {
        padding: 15px;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    .skill-float-icon {
        font-size: 2rem;
    }

    /* Projects Section Mobile */
    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-content h5 {
        font-size: 1.1rem;
    }

    .project-tech {
        gap: 0.4rem;
    }

    .project-tech .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    /* Experience Section Mobile */
    .experience-card {
        padding: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .experience-header h4 {
        font-size: 1.2rem;
    }

    .experience-date {
        font-size: 0.85rem;
    }

    /* Blog Section Mobile */
    .blog-card {
        margin-bottom: 20px;
    }

    .blog-content {
        padding: 20px;
    }
    
    .blog-image {
        height: 180px;
    }

    .blog-title-link {
        font-size: 1.1rem;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog-tags {
        width: 100%;
    }

    /* Scroll Indicator */
    .scroll-indicator-new {
        bottom: 20px;
    }

    .mouse {
        width: 25px;
        height: 45px;
    }
}

/* Extra Small Devices (576px and below) */
@media (max-width: 576px) {
    /* Typography */
    body {
        font-size: 13px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    /* Navigation */
    .navbar-brand {
        padding: 0.3rem 0;
    }

    /* Hero Section */
    .hero-label {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

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

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

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

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-image-container {
        width: 240px;
        height: 240px;
    }

    .decoration-1 {
        width: 280px;
        height: 280px;
    }

    .decoration-2 {
        width: 320px;
        height: 320px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .floating-badge {
        font-size: 0.7rem;
        padding: 6px 12px;
    }

    .btn-hero {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    /* Sections */
    .section-padding {
        padding: 50px 0;
    }

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

    .section-subtitle {
        font-size: 0.95rem;
    }

    .section-divider {
        width: 60px;
        height: 3px;
    }

    /* About Section */
    .about-title {
        font-size: 1.75rem;
    }
    
    .about-info-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    .info-card {
        padding: 12px;
        min-width: 0;
    }

    .info-icon {
        width: 45px;
        height: 45px;
    }

    .info-icon i {
        font-size: 1rem;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 1rem;
    }

    /* Education */
    .education-section {
        padding: 20px 15px;
    }

    .education-title {
        font-size: 1.3rem;
    }

    .education-item {
        padding-left: 50px;
        padding-bottom: 25px;
    }

    .education-icon {
        left: -16px;
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .education-content {
        padding: 15px;
    }

    .education-degree {
        font-size: 1rem;
    }

    .education-institution {
        font-size: 0.95rem;
    }

    .education-date {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    /* Skills */
    .skill-category-card {
        padding: 15px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .skill-item-new {
        padding: 12px;
    }

    .skill-name-simple {
        font-size: 0.9rem;
    }

    .skill-icon-wrapper {
        width: 28px;
        height: 28px;
    }

    /* Projects */
    .project-image {
        height: 180px;
    }

    .project-content {
        padding: 1rem;
    }

    .project-content h5 {
        font-size: 1rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }

    /* Experience */
    .experience-card {
        padding: 1rem;
        margin-bottom: 1.2rem;
    }

    .experience-header h4 {
        font-size: 1.1rem;
    }

    .experience-date {
        font-size: 0.8rem;
    }

    /* Blog */
    .blog-content {
        padding: 15px;
    }

    .blog-image {
        height: 160px;
    }

    .blog-title-link {
        font-size: 1rem;
    }

    .blog-excerpt {
        font-size: 0.9rem;
    }

    .blog-meta {
        font-size: 0.75rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }

    /* Contact Form */
    .contact-form-wrapper {
        padding: 1.5rem 1rem;
    }

    .form-control {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-lg {
        padding: 0.65rem 1.3rem;
        font-size: 0.95rem;
    }

    /* Container Padding */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Scroll Indicator */
    .scroll-indicator-new {
        bottom: 15px;
    }

    .scroll-indicator-new span {
        font-size: 0.75rem;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 991px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 40px;
    }

    .hero-image-section {
        margin-top: 30px;
    }

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

    .decoration-1 {
        width: 240px;
        height: 240px;
    }

    .decoration-2 {
        width: 280px;
        height: 280px;
    }

    .hero-stats {
        margin: 20px 0;
    }

    .floating-badge {
        display: none;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator-new,
    .floating-badge,
    .hero-buttons,
    .hero-social {
        display: none !important;
    }

    body {
        font-size: 12pt;
    }

    .hero-section,
    .section-padding {
        padding: 20px 0;
    }

    .project-overlay,
    .blog-footer .btn {
        display: none;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ===================================
   Touch-Friendly Enhancements
   =================================== */

/* Larger touch targets for mobile */
@media (max-width: 767px) {
    a, button, .btn, .nav-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Touch-friendly spacing */
    .nav-link {
        margin: 2px 0;
    }

    /* Prevent text selection on buttons */
    button, .btn {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* Smooth scrolling for all devices */
html {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
    width: 100%;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}

/* Responsive video embeds */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Prevent zoom on input focus (iOS) */
@media screen and (max-width: 767px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Better link tap highlighting */
a {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
}

/* Optimize for touch scrolling */
.modal-body,
.sidebar-sticky,
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Disable animations on mobile if preferred */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===================================
   Utilities
   =================================== */

.bg-gradient {
    background: var(--gradient) !important;
}

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

/* Responsive utility classes */
.text-responsive {
    font-size: clamp(0.875rem, 2vw, 1rem);
}

.heading-responsive {
    font-size: clamp(1.5rem, 5vw, 3rem);
}

/* Container max-width for better readability */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Accessibility improvements */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100000;
}

.skip-to-content:focus {
    top: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

