/*
Theme Name:   Ahamed Nusri Portfolio Child
Theme URI:    https://ahamednusri.com
Description:  A premium, modern portfolio theme with advanced animations and glassmorphism
Author:       Ahamed Nusri
Template:     hello-elementor
Version:      2.0.0
License:      GNU General Public License v2 or later
Text Domain:  nusri-portfolio
*/

/* =========================================
   GOOGLE FONTS IMPORT
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* =========================================
   1. CSS VARIABLES - DESIGN SYSTEM
   ========================================= */
:root {
    /* Brand Colors */
    --color-primary: #0F172A;
    --color-primary-light: #1E293B;
    --color-primary-dark: #020617;
    --color-accent: #00D9FF;
    --color-accent-glow: rgba(0, 217, 255, 0.5);
    --color-secondary: #FF6B35;

    /* Text Colors */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #94A3B8;
    --color-text-muted: #64748B;

    /* Background */
    --color-bg-body: #020617;
    --color-bg-card: rgba(15, 23, 42, 0.7);
    --color-bg-elevated: rgba(30, 41, 59, 0.9);

    /* Borders & Effects */
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(0, 217, 255, 0.5);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0F172A 0%, #020617 100%);
    --gradient-accent: linear-gradient(135deg, #00D9FF 0%, #0EA5E9 100%);
    --gradient-warm: linear-gradient(135deg, #FF6B35 0%, #F97316 100%);
    --gradient-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--color-accent-glow);
    --shadow-glow-strong: 0 0 60px rgba(0, 217, 255, 0.8);

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   2. GLOBAL STYLES & RESETS
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    background: var(--color-bg-body);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animated Background Grid */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-top: 0;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    margin-top: 0;
    margin-bottom: var(--space-md);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

/* =========================================
   3. UTILITY CLASSES
   ========================================= */

/* Glassmorphism Card */
.glass-card {
    background: var(--color-bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-glow);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Gradient Text */
.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Glowing Button */
.btn-glow {
    background: var(--gradient-accent);
    color: #000;
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width var(--transition-slow), height var(--transition-slow);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-strong);
}

.btn-glow:hover::before {
    width: 300px;
    height: 300px;
}

/* Secondary Button */
.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    font-weight: 600;
    font-family: var(--font-heading);
    padding: 14px 32px;
    border-radius: var(--radius-md);
    border: 2px solid var(--color-accent);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--color-accent);
    color: #000;
    transform: translateY(-2px);
}

/* =========================================
   4. ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* =========================================
   5. CUSTOM WIDGET STYLES
   ========================================= */

/* Hero Widget */
.nusri-hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    animation: fadeIn 1s ease-out;
}

.nusri-hero h1 {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.nusri-hero p {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.nusri-hero .btn-glow {
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Project Grid */
.nusri-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
    animation: fadeIn 0.6s ease-out;
}

.nusri-project-grid .glass-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-thumb {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--space-md);
    position: relative;
}

.project-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.glass-card:hover .project-thumb::after {
    opacity: 1;
}

.project-tech span {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(0, 217, 255, 0.15);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    margin: 4px;
    transition: all var(--transition-fast);
}

.project-tech span:hover {
    background: var(--color-accent);
    color: #000;
    transform: scale(1.05);
}

/* Services Grid */
.nusri-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.nusri-services-grid .glass-card {
    text-align: center;
    transition: all var(--transition-base);
}

.nusri-services-grid .glass-card i {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
    display: block;
    transition: all var(--transition-base);
}

.nusri-services-grid .glass-card:hover i {
    color: var(--color-secondary);
    transform: scale(1.1) rotate(5deg);
}

/* =========================================
   6. RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {

    .nusri-project-grid,
    .nusri-services-grid {
        grid-template-columns: 1fr;
    }

    .nusri-hero {
        min-height: 60vh;
        padding: var(--space-xl) var(--space-md);
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* =========================================
   7. SCROLLBAR STYLING
   ========================================= */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}