/* ============================================
   NUR KHAN - DARK CODE ARTISAN PORTFOLIO
   Modern & Professional Dark Theme CSS
============================================ */

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

:root {
    /* DARK VIBE COLOR PALETTE */
    --primary: #8b5cf6;          /* Purple accent */
    --primary-dark: #7c3aed;     /* Dark purple */
    --primary-glow: #a78bfa;     /* Glow effect */
    --secondary: #10b981;        /* Emerald green */
    --accent: #f59e0b;           /* Amber/orange */
    --danger: #ef4444;           /* Red for alerts */
    --dark-bg: #0a0a0f;          /* Main background */
    --dark-card: #111827;        /* Card background */
    --dark-border: #1f2937;      /* Border color */
    --text-primary: #f8fafc;     /* White text */
    --text-secondary: #94a3b8;   /* Gray text */
    --text-muted: #64748b;       /* Muted text */
    
    /* GRADIENTS */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary), #059669);
    --gradient-dark: linear-gradient(135deg, #111827, #1f2937);
    --gradient-glow: linear-gradient(135deg, var(--primary), var(--primary-glow));
    
    /* SHADOWS */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);
    
    /* TRANSITIONS */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--dark-bg);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, rgba(10, 10, 15, 0.95), rgba(17, 24, 39, 0.95));
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231f2937' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    z-index: -2;
    pointer-events: none;
}

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

/* Section Spacing */
section {
    padding: 100px 0;
    position: relative;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: var(--shadow-glow);
}

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

/* Header & Navigation */
header {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

header.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.98);
    border-bottom-color: var(--primary);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

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

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

.logo:hover::after {
    width: 100%;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.logo-highlight {
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-links a i {
    font-size: 14px;
    color: var(--primary);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.nav-links a:hover i {
    transform: scale(1.2);
    color: var(--primary-glow);
}

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

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: var(--transition);
    z-index: 1001;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.1);
}

.hamburger:hover {
    color: var(--primary);
    background: rgba(139, 92, 246, 0.2);
    box-shadow: var(--shadow-glow);
}

/* Hero Section */
.hero {
    padding-top: 160px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
}

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

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

.hero-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    animation: float 3s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shine 3s infinite;
}

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

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.hero-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 10px 30px rgba(139, 92, 246, 0.2);
}

.hero-name {
    position: relative;
    display: inline-block;
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary), var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: var(--shadow-glow);
}

.hero-text .typing-text {
    font-size: 28px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    display: inline-block;
    border-right: 3px solid var(--primary);
    padding-right: 5px;
    animation: blink 0.7s infinite;
    font-weight: 500;
    min-height: 40px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

@keyframes blink {
    0%, 100% { border-color: var(--primary); }
    50% { border-color: transparent; }
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 500px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description strong {
    color: var(--primary);
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    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.1), transparent);
    transition: left 0.6s;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-2xl), 0 0 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: transparent;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Profile Image */
.hero-image {
    text-align: center;
    position: relative;
}

.profile-container {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
}

.profile-frame {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    border: 3px solid transparent;
    background: var(--gradient-primary);
    padding: 3px;
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
    transition: var(--transition);
}

.profile-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-glow);
    border-radius: 27px;
    z-index: -1;
    animation: rotate 10s linear infinite;
}

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

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 22px;
    transition: var(--transition-slow);
    position: relative;
    z-index: 1;
    filter: brightness(1.05) contrast(1.1);
}

.profile-frame:hover .profile-img {
    transform: scale(1.05);
}

/* ==================== PORTFOLIO GALLERY STYLES ==================== */
.portfolio-gallery {
    padding: 80px 0;
    background: var(--dark-bg);
    position: relative;
}

.portfolio-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: var(--shadow-glow);
}

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

.gallery-item {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--dark-border);
    transition: var(--transition-bounce);
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.gallery-item:hover::before {
    opacity: 0.1;
}

.image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

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

.image-caption {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--dark-card);
    border-top: 1px solid var(--dark-border);
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item:hover .image-caption {
    color: var(--primary);
    background: rgba(17, 24, 39, 0.8);
    border-top-color: var(--primary);
}
/* ==================== END GALLERY STYLES ==================== */

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

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

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

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* About Section Cards */
.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.about-card {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 25px;
    border: 1px solid var(--dark-border);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.about-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

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

.card-icon {
    width: 55px;
    height: 55px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    color: var(--primary);
    font-size: 22px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.about-card:hover .card-icon {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.card-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
}

/* Personal Statement */
.personal-statement {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid var(--dark-border);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.personal-statement::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-glow);
}

.personal-statement h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.personal-statement h3 i {
    color: var(--primary);
    font-size: 18px;
}

.personal-statement p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.personal-statement p:last-child {
    margin-bottom: 0;
}

/* Skills Section */
#skills {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(10, 10, 15, 0.9) 100%);
    position: relative;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: var(--shadow-glow);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-category {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 25px;
    border: 1px solid var(--dark-border);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    min-height: 320px;
}

.skill-category:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.skill-category:hover::before {
    opacity: 0.1;
}

.category-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 22px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
}

.category-title i {
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
}

.skill-category:hover .category-title i {
    transform: scale(1.2) rotate(5deg);
    color: var(--primary-glow);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
    transition: var(--transition);
}

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

.skill-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.skill-list li i {
    color: var(--primary);
    font-size: 13px;
    transition: var(--transition);
}

.skill-list li:hover i {
    transform: scale(1.3) rotate(10deg);
    color: var(--primary-glow);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.achievement-card {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 30px;
    border: 1px solid var(--dark-border);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.achievement-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

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

.achievement-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin: 0 auto 20px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    border: 2px solid rgba(139, 92, 246, 0.3);
    transition: var(--transition-bounce);
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.achievement-card:hover .achievement-icon {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.achievement-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

.achievement-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.achievement-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* Apps Section */
#apps {
    background: linear-gradient(180deg, var(--dark-bg) 0%, rgba(10, 10, 15, 0.9) 100%);
    position: relative;
}

#apps::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.app-card {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    overflow: hidden;
    transition: var(--transition-bounce);
    border: 1px solid var(--dark-border);
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary);
    box-shadow: var(--shadow-2xl), var(--shadow-glow);
}

.app-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow);
}

.app-card:nth-child(1) .app-badge {
    background: var(--gradient-secondary);
}

.app-card:nth-child(2) .app-badge {
    background: var(--gradient-primary);
}

.app-header {
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.app-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), transparent);
    z-index: -1;
}

.app-icon {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-bounce);
}

.app-card:hover .app-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: var(--shadow-glow);
}

.app-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-primary);
    line-height: 1.2;
}

.app-category {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: var(--accent);
}

.app-body {
    padding: 0 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-description {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-app {
    width: 100%;
    justify-content: center;
    padding: 13px 18px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    font-size: 15px;
    margin-top: auto;
    box-shadow: var(--shadow);
}

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

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-primary);
    line-height: 1.2;
}

.contact-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 35px;
    line-height: 1.7;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
    padding: 18px;
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid var(--dark-border);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.contact-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.contact-text p {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.social-section {
    margin-top: 35px;
}

.social-section h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-primary);
}

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

.social-icon {
    width: 48px;
    height: 48px;
    background: var(--dark-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-bounce);
    border: 1px solid var(--dark-border);
    font-size: 17px;
}

.social-icon:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Contact Form */
.contact-form {
    background: var(--dark-card);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 35px;
    border: 1px solid var(--dark-border);
    box-shadow: var(--shadow-lg);
}

.form-group {
    position: relative;
    margin-bottom: 22px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 18px 16px 48px;
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1), var(--shadow-glow);
    background: rgba(17, 24, 39, 0.9);
}

.form-group textarea {
    height: 140px;
    resize: vertical;
    padding-top: 18px;
}

.form-group i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 17px;
    transition: var(--transition);
}

.form-group textarea + i {
    top: 22px;
    transform: none;
}

.form-group input:focus + i,
.form-group textarea:focus + i {
    color: var(--primary-glow);
    transform: translateY(-50%) scale(1.2);
}

.btn-submit {
    width: 100%;
    padding: 17px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    justify-content: center;
    transition: var(--transition);
    margin-top: 8px;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow);
}

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

.btn-submit i {
    transition: var(--transition);
}

.btn-submit:hover i {
    transform: translateX(5px);
}

/* Footer */
footer {
    background: #0a0a0f;
    padding: 50px 0 25px;
    border-top: 1px solid var(--dark-border);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    box-shadow: var(--shadow-glow);
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
    text-decoration: none;
    transition: var(--transition);
}

.footer-logo:hover {
    transform: translateY(-3px);
}

.footer-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 21px;
    box-shadow: var(--shadow);
}

.footer-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.footer-links {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s;
    border-radius: 2px;
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-certification {
    margin-bottom: 25px;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.1);
    padding: 11px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: var(--transition);
}

.cert-badge:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.cert-badge i {
    font-size: 15px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 18px;
    line-height: 1.6;
}

.footer-credit {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-bounce);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    box-shadow: var(--shadow-lg);
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.back-to-top i {
    transition: var(--transition);
}

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

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

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

/* Success Message */
.success-message {
    animation: slideIn 0.5s ease;
}

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

/* ==================== NO-JS FALLBACK ==================== */

/* For JS disabled users and crawlers */
./* ==================== IMAGE LOADING STATES ==================== */

/* Initial state for images when JS is enabled */
.js img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Loaded state */
.js img.loaded {
    opacity: 1;
}

/* No-JS fallback - images visible immediately */
.no-js img {
    opacity: 1 !important;
}

/* Gallery specific */
.no-js .gallery-item img {
    opacity: 1 !important;
    transform: none !important;
}

.js .gallery-item img[data-src] {
    opacity: 0;
}

.js .gallery-item img.loaded {
    opacity: 1;
}

/* Hero image */
.no-js .profile-img {
    opacity: 1 !important;
}

.js .profile-img[data-src] {
    opacity: 0;
}

.js .profile-img.loaded {
    opacity: 1;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 1200px) {
    .hero-content,
    .contact-content {
        gap: 50px;
    }
    
    .section-title {
        font-size: 38px;
    }
    
    .profile-container {
        width: 350px;
        height: 350px;
    }
    
    .achievements-grid {
        gap: 20px;
    }
    
    .gallery-grid {
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        display: flex;
        flex-direction: column;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 0;
    }
    
    .hero-text {
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 42px;
        margin-top: 0;
    }
    
    .profile-container {
        width: 320px;
        height: 320px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }
    
    .about-card,
    .skill-category,
    .achievement-card,
    .gallery-item {
        min-height: 260px;
    }
    
    .achievement-card {
        padding: 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 35px 0;
        gap: 25px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        border-top: 1px solid rgba(139, 92, 246, 0.2);
        box-shadow: var(--shadow-2xl);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links a {
        font-size: 17px;
        padding: 8px 25px;
    }
    
    .hero {
        padding-top: 140px;
        min-height: auto;
        padding-bottom: 60px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .typing-text {
        font-size: 22px;
        min-height: 35px;
    }
    
    .profile-container {
        width: 280px;
        height: 280px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 15px;
        padding: 0 15px;
        margin-top: 20px;
    }
    
    .skills-grid,
    .achievements-grid,
    .about-cards,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .about-card,
    .skill-category,
    .achievement-card,
    .app-card,
    .gallery-item {
        padding: 22px;
        border-radius: 16px;
        min-height: auto;
    }
    
    .about-card {
        min-height: 240px;
    }
    
    .skill-category {
        min-height: 300px;
    }
    
    .achievement-card {
        min-height: 220px;
        padding: 22px;
    }
    
    .gallery-item {
        min-height: 250px;
    }
    
    .image-container {
        height: 220px;
    }
    
    .achievement-number {
        font-size: 38px;
    }
    
    .card-icon,
    .achievement-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .card-title,
    .achievement-title,
    .category-title {
        font-size: 19px;
        margin-bottom: 10px;
    }
    
    .card-text,
    .achievement-desc,
    .skill-list li,
    .app-description,
    .image-caption {
        font-size: 14px;
    }
    
    .skill-list li {
        padding: 9px 0;
        padding-left: 26px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 15px 15px 15px 45px;
        font-size: 14px;
    }
    
    .footer-links {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .footer-links a {
        font-size: 14px;
        padding: 4px 0;
    }
    
    section {
        padding: 80px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .portfolio-gallery {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 32px;
    }
    
    .typing-text {
        font-size: 20px;
        min-height: 32px;
    }
    
    .hero-description {
        font-size: 15px;
        padding: 0 10px;
        margin-bottom: 25px;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 12px;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }
    
    .btn {
        padding: 14px 25px;
        font-size: 15px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .about-card,
    .skill-category,
    .achievement-card,
    .app-card,
    .gallery-item {
        padding: 20px;
        border-radius: 15px;
    }
    
    .about-card {
        min-height: 220px;
    }
    
    .achievement-number {
        font-size: 36px;
    }
    
    .card-icon,
    .achievement-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
        margin-bottom: 12px;
    }
    
    .gallery-item {
        min-height: 230px;
    }
    
    .image-container {
        height: 200px;
    }
    
    .app-header {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .app-icon {
        width: 60px;
        height: 60px;
        font-size: 26px;
    }
    
    .app-info h3 {
        font-size: 20px;
    }
    
    .contact-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .social-links {
        justify-content: center;
        gap: 12px;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .about-cards,
    .skills-grid,
    .achievements-grid,
    .gallery-grid {
        gap: 15px;
    }
    
    section {
        padding: 70px 0;
    }
    
    .personal-statement {
        padding: 25px;
        margin-top: 30px;
    }
    
    .personal-statement h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .personal-statement p {
        font-size: 14px;
    }
    
    .portfolio-gallery {
        padding: 50px 0;
    }
}

@media (max-width: 400px) {
    .hero-text h1 {
        font-size: 28px;
    }
    
    .typing-text {
        font-size: 18px;
        min-height: 30px;
    }
    
    .profile-container {
        width: 220px;
        height: 220px;
    }
    
    .hero-description {
        font-size: 14px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .hero-btns .btn {
        max-width: 250px;
        padding: 12px 18px;
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .about-card,
    .skill-category,
    .achievement-card,
    .app-card,
    .gallery-item {
        padding: 18px;
        border-radius: 14px;
    }
    
    .about-card {
        min-height: 200px;
    }
    
    .achievement-number {
        font-size: 32px;
    }
    
    .card-icon,
    .achievement-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .gallery-item {
        min-height: 220px;
    }
    
    .image-container {
        height: 180px;
    }
    
    .card-title,
    .achievement-title,
    .category-title,
    .image-caption {
        font-size: 18px;
    }
    
    .card-text,
    .achievement-desc,
    .skill-list li,
    .app-description {
        font-size: 13px;
    }
    
    .skill-list li {
        padding: 8px 0;
        padding-left: 24px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .portfolio-gallery {
        padding: 40px 0;
    }
}

/* Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .typing-text {
        border-right: none !important;
        animation: none !important;
    }
    
    .loader-spinner {
        animation: none !important;
    }
    
    .hero-badge {
        animation: none !important;
    }
    
    .profile-frame::before {
        animation: none !important;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-glow);
}