/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a0a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* "Wake up to top" effect: Slide up instead of fade */
    transition: transform 1.2s cubic-bezier(0.8, 0, 0.2, 1);
}

.preloader-hidden {
    transform: translateY(-100%);
}

.loader-text {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.2;
    margin-bottom: 30px;
    animation: trackIn 1.5s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

/* New Animation for Text Tracking */
@keyframes trackIn {
    0% {
        letter-spacing: 15px;
        opacity: 0;
    }

    100% {
        letter-spacing: 4px;
        opacity: 1;
    }
}

.loader-line {
    width: 50px;
    height: 4px;
    background: #fff;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 0 10px #2575fc, 0 0 20px #6a11cb;
    animation: neonPulse 1.2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
    0% {
        width: 50px;
        opacity: 0.6;
        box-shadow: 0 0 5px #2575fc;
    }

    100% {
        width: min(400px, 90vw);
        opacity: 1;
        box-shadow: 0 0 25px #2575fc, 0 0 50px #6a11cb, 0 0 80px #fff;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }

    100% {
        text-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 50px rgba(106, 17, 203, 0.4);
    }
}

@keyframes focusIn {
    0% {
        filter: blur(12px);
        opacity: 0;
        letter-spacing: 10px;
    }

    100% {
        filter: blur(0px);
        opacity: 1;
        letter-spacing: 2px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    /* Extra Bold */
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 2rem;
    /* Electric Shine Effect */
    background: linear-gradient(to right,
            #ffffff 0%,
            #ffffff 35%,
            #00c6ff 50%,
            #ffffff 65%,
            #ffffff 100%);
    background-size: 200% auto;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #fff;
    /* Fallback */

    animation: shine 3s cubic-bezier(0.4, 0, 0.2, 1) infinite, pulseText 3s ease-in-out infinite;

    line-height: 1.1;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(0, 198, 255, 0.3));
    /* Glow outside the text */
}

/* Pulse Animation for subtle movement */
@keyframes pulseText {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

/* Gradient Underline Decoration - Removed for cleaner look */
/* .hero-title::after { ... } */

.hero-subtitle {
    font-size: 1.1rem;
    color: #e0e0e0;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;

    /* New Glass Style */
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(37, 117, 252, 0.2);
    /* Subtle blue glow */
    transition: all 0.3s ease;
}

.hero-subtitle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(37, 117, 252, 0.4);
    transform: translateY(-2px);
}

.hero-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #888;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0 10px;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-secondary {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Sections */
section {
    padding: 100px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: #111;
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s, background 0.3s;
    border: 1px solid #222;
}

.service-card:hover {
    transform: translateY(-10px);
    background: #161616;
    border-color: #333;
}

.service-icon {
    font-size: 2rem;
    color: #6a11cb;
    margin-bottom: 1.5rem;
}

/* Skills */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: block;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.reveal.active .skill-progress {
    transform: scaleX(1);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Hero Animation (Name then Info) */
.hero-content>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.hero.active .hero-content>* {
    opacity: 1;
    transform: translateY(0);
}

/* Delays for the "Name then Info" sequence */
.hero.active .hero-title {
    transition-delay: 0.1s;
}

.hero.active .hero-subtitle {
    transition-delay: 0.3s;
}

.hero.active .hero-description {
    transition-delay: 0.5s;
}

.hero.active .hero-buttons {
    transition-delay: 0.7s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }



    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
    }


}

/* Loader Status */
.loader-status {
    margin-top: 15px;
    font-size: 0.9rem;
    letter-spacing: 4px;
    color: #888;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
    height: 20px;
    /* Fixed height to prevent layout shift */
}

/* Status Text Fade Effect */
.status-text {
    animation: pulse 1s infinite alternate;
}

/* Finished State for Line */
.loader-line.finished {
    animation: none !important;
    width: min(400px, 90vw) !important;
    box-shadow: 0 0 50px #00ffaa, 0 0 100px #00ffaa;
    background: #00ffaa;
    transition: all 0.4s ease;
}

/* Finished State for Status */
.loader-status.finished {
    color: #00ffaa;
    text-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
    opacity: 1;
}

.loader-status.finished .status-text {
    animation: none;
}

/* Shine Animation for Text */
@keyframes shine {
    to {
        background-position: 200% center;
    }
}/* Portfolio Styles */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #222;
    transition: transform 0.4s, box-shadow 0.4s;
    position: relative;
    group: hover;
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: #333;
}

.portfolio-image {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.5s;
}

.portfolio-item:hover .img-placeholder {
    transform: scale(1.1);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
    font-family: 'Oswald', sans-serif;
    color: #fff;
}

.portfolio-cat {
    display: block;
    font-size: 0.85rem;
    color: #00c6ff;
    /* Match electric blue theme */
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-info p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.5;
}

/* Security Special Section */
.security-special {
    background: linear-gradient(135deg, #0a0a0a 0%, #0f1014 100%);
    position: relative;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    padding: 80px 0;
}

.security-highlight {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 198, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 50px rgba(0, 198, 255, 0.05);
    /* Subtle glow */
}

.security-text h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
    font-family: 'Oswald', sans-serif;
}

.security-text h3 i {
    color: #00c6ff;
    margin-right: 10px;
}

.highlight-desc {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 198, 255, 0.1);
    border: 1px solid #00c6ff;
    padding: 10px 20px;
    border-radius: 30px;
    color: #00c6ff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.security-badge i {
    margin-right: 10px;
}

.disclaimer {
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
    border-top: 1px solid #333;
    padding-top: 1rem;
    display: inline-block;
}
/* =========================================
   Redesigned Portfolio - Project Cards
   ========================================= */
.portfolio {
    background: #050505;
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Glow Effect behind cards */
.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover .card-glow {
    opacity: 1;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s;
}

.project-card:hover .project-icon {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Icon Colors */
.icon-gold i {
    color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.4));
}

.icon-rose i {
    color: #ff6b6b;
    filter: drop-shadow(0 0 10px rgba(255, 107, 107, 0.4));
}

.icon-green i {
    color: #00ffaa;
    filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.4));
}

.icon-purple i {
    color: #d65db1;
    filter: drop-shadow(0 0 10px rgba(214, 93, 177, 0.4));
}

.icon-blue i {
    color: #4facfe;
    filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.4));
}

.icon-shield i {
    color: #ff3333;
    filter: drop-shadow(0 0 15px rgba(255, 51, 51, 0.6));
}

.project-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.project-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 1rem;
    border: 1px solid #333;
    padding: 4px 10px;
    border-radius: 4px;
}

.tag-active {
    color: #ff3333;
    border-color: #ff3333;
    background: rgba(255, 51, 51, 0.1);
    font-weight: bold;
    animation: blinkRed 2s infinite;
}

.project-card p {
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.6;
}

/* Special Government Card */
.special-card {
    border: 1px solid rgba(255, 51, 51, 0.3);
    background: linear-gradient(145deg, rgba(20, 0, 0, 0.8), rgba(10, 10, 10, 0.9));
}

.glow-security {
    background: radial-gradient(circle at 50% 0%, rgba(255, 51, 51, 0.15), transparent 70%);
}

/* =========================================
   Government Security Authority Section
   ========================================= */
.security-authority {
    padding: 100px 0;
    background: linear-gradient(to bottom, #050505, #0f0f0f);
    display: flex;
    justify-content: center;
}

.security-container {
    max-width: 1000px;
    width: 90%;
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #00c6ff;
    /* Security Blue Accent */
    border-radius: 4px;
    padding: 4rem;
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.security-badge-large {
    font-size: 4rem;
    color: #00c6ff;
    padding: 2rem;
    background: rgba(0, 198, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(0, 198, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.1);
}

.security-content-main h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.status-live {
    font-size: 1rem;
    color: #00ffaa;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blink {
    animation: blinkGreen 1.5s infinite;
}

.security-content-main p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.security-capabilities {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.cap-item {
    font-size: 0.95rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cap-item i {
    color: #00c6ff;
    margin-right: 8px;
}

.security-note {
    font-size: 0.85rem;
    color: #666;
    border-top: 1px solid #222;
    padding-top: 1.5rem;
}

.security-note i {
    color: #ffcc00;
    margin-right: 5px;
}

@keyframes blinkRed {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes blinkGreen {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .security-container {
        flex-direction: column;
        padding: 2rem;
        align-items: center;
        text-align: center;
    }

    .security-capabilities {
        justify-content: center;
    }
}
/* Location Tag Style */
.location-tag {
    display: table;
    font-size: 0.7rem;
    color: #fff;
    background: #222;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    opacity: 0.7;
}

.project-card:hover .location-tag {
    background: #00c6ff;
    color: #000;
    opacity: 1;
}
/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn i {
    font-size: 1.4rem;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Brand Colors */
.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: transparent;
}

.facebook:hover {
    background: #1877F2;
    border-color: #1877F2;
}

.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
}

.contact-email {
    text-align: center;
    color: #888;
    margin-top: 2rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}
/* =========================================
   Compact Skills - Badge Style
   ========================================= */
.skills-categories {
    max-width: 800px;
    margin: 0 auto;
}

.skills-list-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 1rem;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.skill-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.skill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #555;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Specific Dot Colors */
.dot-python {
    background-color: #3776ab;
    box-shadow: 0 0 8px #3776ab;
}

.dot-js {
    background-color: #f7df1e;
    box-shadow: 0 0 8px #f7df1e;
}

.dot-php {
    background-color: #777bb4;
    box-shadow: 0 0 8px #777bb4;
}

.dot-java {
    background-color: #007396;
    box-shadow: 0 0 8px #007396;
}

.dot-html {
    background-color: #e34f26;
    box-shadow: 0 0 8px #e34f26;
}

.dot-css {
    background-color: #1572b6;
    box-shadow: 0 0 8px #1572b6;
}

.dot-sql {
    background-color: #003b57;
    box-shadow: 0 0 8px #003b57;
}
/* Simplification of Hero Title - Fixes "Broken" appearance */
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 1rem;

    /* Removed complex background-clip animation that might look broken */
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 198, 255, 0.5);

    line-height: 1.1;
    position: relative;
    display: block;
    /* Changed from inline-block to block to ensure proper stacking */
}

/* Ensure Subtitle is clean */
.hero-subtitle {
    font-size: 1.1rem;
    color: #e0e0e0;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}
/* =========================================
   Redesigned Premium Portfolio Icons
   ========================================= */

/* New Icon Container Style - Glassmorphic Cube */
.project-icon {
    font-size: 2rem;
    /* Slightly smaller icon for elegance */
    margin-bottom: 0.5rem;
    /* Adjusted spacing */
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    /* Softer corners */

    /* Premium Glass Effect */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    /* Shadow side */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Shadow side */

    box-shadow:
        0 8px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.03);

    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

/* Hover Effect - Icon Lift & Glow */
.project-card:hover .project-icon {
    transform: translateY(-8px) scale(1.05);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    box-shadow:
        0 15px 25px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

/* Add a diagonal shine element */
.project-icon::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}

.project-card:hover .project-icon::after {
    opacity: 1;
    left: 100%;
    transition: 0.8s;
}

/* Refined Icon Colors - Brighter & Neon */

/* Blue (Standard Tech) - Electric Cyan */
.icon-blue i {
    color: #00f2ff;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
    filter: drop-shadow(0 0 5px rgba(0, 242, 255, 0.3));
}

/* Gold (Luxury) - Rich Amber */
.icon-gold i {
    color: #ffaa00;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.5);
    filter: drop-shadow(0 0 5px rgba(255, 170, 0, 0.3));
}

/* Purple (Innovation) - Neon Violet */
.icon-purple i {
    color: #d900ff;
    text-shadow: 0 0 15px rgba(217, 0, 255, 0.5);
    filter: drop-shadow(0 0 5px rgba(217, 0, 255, 0.3));
}

/* Red/Rose (Security/Critical) - Neon Red */
.icon-rose i,
.icon-shield i {
    color: #ff2a2a;
    text-shadow: 0 0 15px rgba(255, 42, 42, 0.5);
    filter: drop-shadow(0 0 5px rgba(255, 42, 42, 0.3));
}

/* Green (Growth/Data) - Matrix Green */
.icon-green i {
    color: #00ff62;
    text-shadow: 0 0 15px rgba(0, 255, 98, 0.5);
    filter: drop-shadow(0 0 5px rgba(0, 255, 98, 0.3));
}

/* Portfolio Card Layout Adjustment for New Icon */
.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align Everything Left */
}

/* Ensure the title is close to the icon */
.project-card h3 {
    margin-top: 1rem;
    font-size: 1.6rem;
}
/* =========================================
   Performance Optimization & Icon Style Update
   ========================================= */

/* Hero Title - Removed Heavy Animations */
.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 2rem;

    /* Clean Solid White with Electric Glow */
    color: #fff;
    text-shadow: 0 0 25px rgba(0, 198, 255, 0.4);

    /* Removed heavy gradients and background clips */
    background: none;
    -webkit-text-fill-color: #fff;

    animation: none;
    /* Stopped animation for performance */

    line-height: 1.1;
    position: relative;
    display: inline-block;
}

/* Project Card - Performance Optimized */
.project-card {
    /* Using solid semi-transparent color instead of backdrop-filter which lags */
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Slightly more visible border */
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    /* Simpler transition */
    backdrop-filter: none !important;
    /* Force remove blur */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card:hover {
    transform: translateY(-5px);
    /* Reduced movement */
    border-color: rgba(255, 255, 255, 0.3);
    /* Removed heavy box-shadow expansion */
}

/* New "Circle" Icon Style - Clean & Fast */
.project-icon {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Perfect Circle */

    /* Solid Dark Background with colored border */
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.1);

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);

    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Hover Effect - Border Glow */
.project-card:hover .project-icon {
    transform: scale(1.1);
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Removed the diagonal shine pseudo-element for performance */
.project-icon::after {
    display: none;
}

/* Navbar - Performance */
.navbar {
    background: rgba(10, 10, 10, 0.98);
    /* Almost solid */
    backdrop-filter: none;
    /* Removing blur */
}

/* Preloader - Faster Exit */
#preloader {
    transition: transform 0.5s ease-in-out;
    /* Faster */
}

/* Icon Colors - Optimized Text Shadows (Less Blur Radius) */

.icon-blue i {
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.icon-gold i {
    color: #ffaa00;
    text-shadow: 0 0 10px rgba(255, 170, 0, 0.4);
}

.icon-purple i {
    color: #d900ff;
    text-shadow: 0 0 10px rgba(217, 0, 255, 0.4);
}

.icon-rose i,
.icon-shield i {
    color: #ff2a2a;
    text-shadow: 0 0 10px rgba(255, 42, 42, 0.4);
}

.icon-green i {
    color: #00ff62;
    text-shadow: 0 0 10px rgba(0, 255, 98, 0.4);
}

/* Security Special Section - Performance */
.security-highlight {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: none;
}

.hero-subtitle {
    backdrop-filter: none;
    background: rgba(30, 30, 30, 0.8);
}
/* =========================================
   Redesigned About Section - Premium & Modern
   ========================================= */

#about {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    position: relative;
}

/* Typography Update */
.lead-text {
    font-size: 1.15rem;
    line-height: 1.8;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: #00c6ff;
    font-weight: 600;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(0, 198, 255, 0.5);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.bio-text:hover .highlight-text::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Stats Grid System */
.stats-grid {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    min-width: 140px;
    flex: 1;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    border-color: rgba(0, 198, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 1.5rem;
    color: #4facfe;
    margin-bottom: 0.8rem;
    opacity: 0.8;
    transition: all 0.3s;
}

.stat-box:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
    color: #00c6ff;
    opacity: 1;
}

.stat-number {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    background: linear-gradient(to bottom, #fff 40%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* Add a polished layout for the content */
.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    background: rgba(30, 30, 30, 0.4);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    /* Keep subtle blur here as it is static */
}

/* Ensure image stays nice */
.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle at 30% 30%, #2a2a2a, #000);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: #222;
    box-shadow:
        10px 10px 30px rgba(0, 0, 0, 0.5),
        -5px -5px 20px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.image-placeholder i {
    color: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 20px rgba(0, 0, 0, 1);
}

.about-text {
    flex: 1.5;
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column-reverse;
        padding: 2rem;
        gap: 2rem;
    }

    .stats-grid {
        justify-content: center;
    }

    .stat-box {
        min-width: 100px;
        flex: 1 1 40%;
        /* 2 per row on mobile */
    }
}
/* Mobile Skill Dots */
.dot-flutter {
    background-color: #00e5ff;
    box-shadow: 0 0 10px #00e5ff;
}

.dot-dart {
    background-color: #00b0ff;
    box-shadow: 0 0 10px #00b0ff;
}

.dot-ios {
    background-color: #ffffff;
    box-shadow: 0 0 10px #ffffff;
}

.dot-android {
    background-color: #3ddc84;
    box-shadow: 0 0 10px #3ddc84;
}
/* =========================================
   Fixed Skills Layout - Categories
   ========================================= */

.skills-categories {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.skill-category {
    flex: 1;
    min-width: 300px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.skill-category h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: #00c6ff;
    /* Match brand blue */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

/* Add a small separator line under titles */
.skill-category h3::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #00c6ff;
    margin: 10px auto 0;
    opacity: 0.5;
}

.skills-list-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
/* =========================================
   Back to Top Button (Bottom-First)
   ========================================= */

#backToTop {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;

    width: 50px;
    height: 50px;

    border: none;
    outline: none;

    /* Neon Blue Circle */
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00c6ff;
    border-radius: 50%;

    color: #00c6ff;
    cursor: pointer;
    font-size: 1.2rem;

    box-shadow: 0 0 15px rgba(0, 198, 255, 0.3);
    transition: all 0.3s ease;

    /* Animation */
    animation: pulseBtn 2s infinite;
}

#backToTop:hover {
    background: #00c6ff;
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 198, 255, 0.6);
}

@keyframes pulseBtn {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 198, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 198, 255, 0);
    }
}

/* Adjust Section Spacing since they are moved */
#services {
    background: #0a0a0a;
}

#about {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
/* =========================================
   NANO SECURITY PREMIUM THEME
   Style: Cyber-Minimalism / High-Tech
   ========================================= */

/* 1. Dynamic Background - Cyber Grid */
body {
    background-color: #050505;
    background-image:
        linear-gradient(rgba(0, 242, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    position: relative;
    /* subtle movement */
    animation: gridMove 100s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

/* 2. CRT Scanline Overlay (The "Security Monitor" Feel) */
body::after {
    content: " ";
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to bottom,
            rgba(18, 16, 16, 0) 50%,
            rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    /* Click-through */
}

/* 3. Section Titles - Glitch Effect on Hover */
.section-title {
    position: relative;
    display: inline-block;
    color: #fff;
    cursor: default;
    transition: color 0.3s;
}

.section-title:hover {
    color: #00f2ff;
    text-shadow: 2px 0 #ff00de, -2px 0 #00f2ff;
}

/* 4. Elite Project Cards - "Holographic Border" */
.project-card {
    border: 1px solid rgba(0, 242, 255, 0.1);
    /* Cyan hint */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    background: rgba(10, 10, 12, 0.9);
    /* Darker, cleaner */
}

/* The Animated Border Line */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    padding: 2px;
    /* Border width */
    background: linear-gradient(45deg, transparent, #00c6ff, transparent, #d600ff, transparent);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
    animation: borderRotate 4s linear infinite;
}

@keyframes borderRotate {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* 5. Hero Section - Deep Space Gradient */
#home {
    background: radial-gradient(circle at center, rgb(16, 26, 36) 0%, rgb(0, 0, 0) 80%);
}

.hero-title {
    /* Make the text crisper */
    text-shadow: 0 0 30px rgba(0, 198, 255, 0.3);
    letter-spacing: -2px;
}

/* 6. Special Treatment for Government Section */
.security-authority {
    background:
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/svgs/solid/shield-alt.svg');
    /* Abstract fallback */
    border-top: 1px solid #00c6ff;
    border-bottom: 1px solid #00c6ff;
    box-shadow: 0 0 50px rgba(0, 198, 255, 0.1);
}

.status-live {
    background: rgba(0, 255, 170, 0.05);
    /* Very subtle green bg */
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-flex;
    border: 1px solid rgba(0, 255, 170, 0.2);
}

/* 7. Refined Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00c6ff;
}

/* 8. Glass Card for About & Services */
#about .about-content,
#services .service-card {
    background: rgba(255, 255, 255, 0.015);
    /* Ultra minimal glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* 9. Interactive Particle Effect for Buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0);
    transition: transform 0.5s, opacity 0.5s;
}

.btn:active::after {
    opacity: 1;
    transform: scale(1);
    transition: 0s;
}
/* =========================================
   Quick Fixes for Premium Theme & Lint
   ========================================= */

/* Fix missing Scanline class if using div method */
.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.6;
}

/* Lint Fix for Mask Property */
.project-card::before {
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Ensure background is visible properly */
body {
    background-blend-mode: overlay;
}
/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        /* Hidden by default */
        position: fixed;
        left: -100%;
        top: 70px;
        /* Below navbar */
        gap: 0;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2rem 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        display: flex;
        /* Show when active */
        left: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 1rem;
    }

    /* Hamburger Animation */
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hamburger span {
        transition: all 0.3s ease-in-out;
    }
}
/* =========================================
   Mobile Visibility & Layout Fixes
   ========================================= */

/* Fix Portfolio Grid collapsing on small screens */
.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    /* Reduced from 320px to fit iPhone SE / narrow androids */
}

/* Fix Container padding on mobile to give more breathing room */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem !important;
        /* Reduced from 2rem */
    }

    .section-title {
        font-size: 2rem !important;
        /* Smaller titles on mobile */
    }

    /* Ensure Services Grid wraps properly */
    .services-grid {
        grid-template-columns: 1fr !important;
    }

    /* Force Portfolio Cards to be visible */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        /* One column on mobile */
    }

    /* Skills layout mobile fix */
    .skills-categories {
        flex-direction: column;
        gap: 2rem;
    }

    .skill-category {
        min-width: 100%;
    }
}

/* Ensure Reveal Animations trigger earlier on mobile */
@media (max-width: 768px) {
    .reveal {
        transform: translateY(20px);
        /* Smaller movement */
        transition-delay: 0s !important;
    }
}

/* Fix Body Overflow */
body,
html {
    overflow-x: hidden;
    width: 100%;
}
/* =========================================
   Mobile Scroll & Performance Fixes
   ========================================= */

@media (max-width: 768px) {

    /* 1. Disable heavy background animation on mobile */
    body {
        animation: none !important;
        background-attachment: scroll;
        /* Fix for mobile background scrolling */
    }

    /* 2. Remove Custom Scrollbar on Mobile (Native is better) */
    ::-webkit-scrollbar {
        width: auto;
        background: transparent;
    }

    ::-webkit-scrollbar-thumb {
        background: transparent;
    }

    /* 3. Ensure HTML doesn't lock scroll */
    html {
        overflow-x: visible;
        width: 100%;
    }

    body {
        overflow-x: hidden;
        position: relative;
    }

    /* 4. Fix Hero Height mobile glitch */
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 100px;
        /* Space for navbar */
    }

    /* 5. Ensure Scanline doesn't block touch */
    .scanline,
    body::after {
        display: none !important;
        /* Remove effects on mobile for performance */
    }
}
/* =========================================
   EMERGENCY MOBILE FIX - FORCE VISIBILITY
   ========================================= */

@media (max-width: 768px) {

    /* Force all sections to be visible immediately on mobile */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    /* Ensure Grid is 1 column and visible */
    .portfolio-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        gap: 1.5rem !important;
    }

    /* Ensure Cards have height */
    .project-card {
        min-height: 200px;
        opacity: 1 !important;
        transform: none !important;
        margin-bottom: 1rem;
    }

    /* Fix container padding */
    .container {
        padding: 0 15px !important;
        max-width: 100vw !important;
        overflow: hidden;
    }

    /* Ensure section itself is visible */
    #portfolio,
    .portfolio {
        display: block !important;
        opacity: 1 !important;
        height: auto !important;
        overflow: visible !important;
    }
}
/* =========================================
   Mobile Touch Interaction - Professional Positions
   ========================================= */

/* On Mobile, :hover often requires a tap. 
   We ensure the active state persists on touch. */

@media (max-width: 768px) {

    /* When a card is 'active' (tapped), show hover effects */
    .project-card:active,
    .project-card:focus,
    .project-card.touch-active {
        transform: translateY(-5px) scale(1.02);
        border-color: rgba(255, 255, 255, 0.4);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        background: rgba(30, 30, 30, 0.9);
    }

    /* Ensure the icon glows on tap too */
    .project-card:active .project-icon,
    .project-card:focus .project-icon,
    .project-card.touch-active .project-icon {
        transform: scale(1.1);
        border-color: #fff;
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }

    /* Ensure the holographic border shows on tap */
    .project-card:active::before,
    .project-card:focus::before,
    .project-card.touch-active::before {
        opacity: 1;
        animation: borderRotate 4s linear infinite;
    }

    /* Government Card Special Effect on Tap */
    .special-card:active .glow-security,
    .special-card:focus .glow-security,
    .special-card.touch-active .glow-security {
        opacity: 0.8 !important;
    }
}
/* =========================================
   Advanced Cyber Preloader
   ========================================= */

/* 1. The Line - Now a "Loading Bar" */
.loader-line {
    width: 0px;
    /* Start empty */
    height: 4px;
    background: #00c6ff;
    /* Neon Blue */
    margin: 20px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
    transition: width 0.5s ease;
    /* Controlled by JS */
    position: relative;
    overflow: visible;
}

/* The "Head" of the loading bar (Leading sparkling tip) */
.loader-line::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 0;
    width: 10px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px #fff, 0 0 30px #00c6ff;
    opacity: 0;
}

.loader-line.loading::after {
    opacity: 1;
}

/* Finished State - Green Burst */
.loader-line.finished {
    width: 300px !important;
    background: #00ffaa;
    box-shadow: 0 0 20px #00ffaa, 0 0 40px #00ffaa;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.loader-line.finished::after {
    display: none;
    /* Hide tip when done */
}

/* 2. Text Glitch Effect */
.loader-text {
    position: relative;
}

.loader-text::before,
.loader-text::after {
    content: 'ALIND MURAD AHMED';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Hidden by default */
}

.glitch-active::before {
    color: #ff00de;
    opacity: 0.5;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    left: -2px;
}

.glitch-active::after {
    color: #00ffaa;
    opacity: 0.5;
    animation: glitch 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
    left: 2px;
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

/* 3. Status Text - Access Granted Flash */
.loader-status.finished .status-text {
    color: #00ffaa;
    text-shadow: 0 0 10px #00ffaa;
    font-weight: bold;
    letter-spacing: 6px;
    transition: all 0.3s;
}

/* 4. Preloader Exit - "TV Turn Off" Effect */
#preloader {
    transition: opacity 0.5s ease;
}

#preloader.preloader-hidden {
    opacity: 0;
    pointer-events: none;
    /* Optional: Add a scale out effect for deeper immersion */
    transform: scale(1.1);
    filter: blur(10px);
}
/* =========================================
   PLAN B: HOLOGRAPHIC HUD PRELOADER
   ========================================= */

/* Hide the old line */
.loader-line {
    width: 100px;
    height: 100px;
    background: transparent;
    border-radius: 50%;
    margin: 30px auto;
    position: relative;
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. Spinning Outer Rings */
.loader-line::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00c6ff;
    border-bottom-color: #00c6ff;
    animation: spinHigh 2s linear infinite;
}

.loader-line::after {
    content: '';
    position: absolute;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-left-color: #ff00de;
    border-right-color: #ff00de;
    animation: spinLow 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 2. Center Shield Icon */
.loader-icon-center {
    font-size: 2rem;
    color: #fff;
    opacity: 0.8;
    animation: pulseShield 1s ease-in-out infinite alternate;
}

/* 3. Animations */
@keyframes spinHigh {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes spinLow {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulseShield {
    from {
        text-shadow: 0 0 10px #00c6ff, 0 0 20px #00c6ff;
        opacity: 0.5;
    }

    to {
        text-shadow: 0 0 20px #00c6ff, 0 0 40px #fff;
        opacity: 1;
    }
}

/* 4. Text Styling */
.loader-text {
    font-family: 'Oswald', sans-serif;
    letter-spacing: 5px;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.status-text {
    font-family: 'Consolas', monospace;
    color: #00c6ff;
    font-size: 0.9rem;
}

/* Finished State - Implosion */
.loader-line.finished {
    transform: scale(0);
    opacity: 0;
    transition: all 0.5s ease-in;
}

.loader-text.finished {
    letter-spacing: 20px;
    opacity: 0;
    transition: all 0.5s ease-out;
}
/* =========================================
   PLAN C: BIOMETRIC FINGERPRINT SCANNER
   ========================================= */

/* Reset Loader Line to be a container */
.loader-line {
    width: 100px;
    height: 100px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 198, 255, 0.3);
    /* Frame */
    border-radius: 10px;
}

/* Remove Plan B/A clutter */
.loader-line::before,
.loader-line::after {
    display: none;
}

/* Fingerprint Icon */
.fingerprint-icon {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.1);
    /* Dim initially */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: color 0.5s;
}

/* The Scanning Laser Beam */
.scan-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #00c6ff;
    box-shadow: 0 0 15px #00c6ff;
    z-index: 2;
    animation: scanMove 1.5s ease-in-out infinite;
    opacity: 0.8;
}

/* Active State (Match Found) */
.loader-line.matched .fingerprint-icon {
    color: #00ffaa;
    /* Success Green */
    filter: drop-shadow(0 0 10px #00ffaa);
    animation: pulseSuccess 0.5s ease-in-out;
}

.loader-line.matched .scan-beam {
    display: none;
}

.loader-line.matched {
    border-color: #00ffaa;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2);
}

/* Animations */
@keyframes scanMove {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

@keyframes pulseSuccess {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Status Text Updates */
.loader-status .status-text {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    letter-spacing: 2px;
}
/* =========================================
   RESTORED PLAN A: CYBER LOADER
   ========================================= */

/* Reset Loader Line to Bar Shape */
.loader-line {
    width: 0px !important;
    /* Start empty */
    height: 4px !important;
    background: #00c6ff !important;
    margin: 20px auto !important;
    border-radius: 2px !important;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5) !important;
    border: none !important;
    display: block !important;
    overflow: visible !important;
}

/* Ensure no icons interfering */
.loader-line::before {
    display: none !important;
}

/* Sparkle Tip */
.loader-line::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: -2px !important;
    right: 0 !important;
    width: 10px !important;
    height: 8px !important;
    background: #fff !important;
    border-radius: 50% !important;
    box-shadow: 0 0 15px #fff, 0 0 30px #00c6ff !important;
    opacity: 0;
}

.loader-line.loading::after {
    opacity: 1 !important;
}

/* Finished State */
.loader-line.finished {
    width: 300px !important;
    background: #00ffaa !important;
    box-shadow: 0 0 20px #00ffaa, 0 0 40px #00ffaa !important;
}

/* Hide Fingerprint stuff if present in CSS */
.fingerprint-icon,
.scan-beam {
    display: none !important;
}
/* =========================================
   SIMPLE & CLEAN LOADER (User Request)
   ========================================= */

/* 1. The Line - Starts WHITE */
.loader-line {
    width: 0px !important;
    /* Start at 0 width */
    height: 4px !important;
    background: #ffffff !important;
    /* Pure White */
    margin: 20px auto !important;
    border-radius: 4px !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    display: block !important;
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: width 0.1s linear, background-color 0.3s ease !important;
}

/* Remove fancy tips/sparkles to keep it solid */
.loader-line::before,
.loader-line::after {
    display: none !important;
}

/* 2. Finished State - Turns GREEN */
.loader-line.finished {
    width: 300px !important;
    /* Full width */
    background: #00ffaa !important;
    /* Bright Green */
    box-shadow: 0 0 20px #00ffaa, 0 0 40px #00ffaa !important;
}

/* 3. Text Styles */
.status-text {
    color: #fff;
    font-family: 'Consolas', monospace;
    letter-spacing: 2px;
}

.loader-status.finished .status-text {
    color: #00ffaa !important;
    text-shadow: 0 0 10px #00ffaa;
}

/* Hide conflicting icons from previous plans */
.fingerprint-icon,
.scan-beam,
.loader-icon-center {
    display: none !important;
}
/* Upgrade for Preloader Line & Text */

/* 1. Explosive Line Finish */
.loader-line.finished {
    animation: lineExplode 0.6s cubic-bezier(0.2, 1, 0.3, 1) forwards !important;
    background: #00ffaa !important;
    box-shadow: 0 0 20px #00ffaa, 0 0 40px #00ffaa !important;
    border-radius: 2px;
}

@keyframes lineExplode {
    0% {
        width: 50px;
        background: #fff;
        box-shadow: 0 0 20px #fff;
        opacity: 1;
    }

    50% {
        width: 90vw;
        /* Stretch full width */
        background: #fff;
        /* Flash white */
        box-shadow: 0 0 50px #fff, 0 0 80px #00c6ff;
    }

    100% {
        width: 100vw;
        background: #00ffaa;
        /* Settle on Green */
        box-shadow: 0 0 30px #00ffaa;
        opacity: 0;
        /* Fade out just before the screen slides up */
    }
}

/* 2. Glitch Text Style for "ACCESS GRANTED" */
.loader-status.finished .status-text {
    color: #00ffaa;
    text-shadow: 0 0 15px #00ffaa;
    font-weight: 800;
    letter-spacing: 5px;
}
/* Restore Classic Loading Line Finish */
.loader-line.finished {
    animation: none !important;
    width: min(400px, 90vw) !important;
    /* Stays at max width */
    background: #00ffaa !important;
    /* turns green */
    box-shadow: 0 0 30px #00ffaa, 0 0 60px #00ffaa !important;
    opacity: 1 !important;
    /* Keep it visible */
    transition: all 0.5s ease;
    transform: scale(1.1);
    /* Slight pop */
}

/* Ensure the pulse animation is robust before finish */
.loader-line {
    animation: neonPulse 1.5s ease-in-out infinite alternate !important;
}
/* =========================================
   FIXED LOADING LINE VISIBILITY
   ========================================= */

#preloader {
    z-index: 20000 !important;
    /* Ensure it's on top of EVERYTHING */
    background: #000 !important;
}

.loader-content {
    position: relative;
    z-index: 20001;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Force the line to be visible and animated */
.loader-line {
    display: block !important;
    width: 50px;
    height: 4px !important;
    background: #fff !important;
    margin: 20px auto !important;
    border-radius: 4px;
    opacity: 1 !important;

    /* Stronger Pulse Animation */
    animation: forcePulse 1s ease-in-out infinite alternate !important;
    box-shadow: 0 0 15px #00c6ff, 0 0 30px #00c6ff !important;
}

@keyframes forcePulse {
    0% {
        width: 50px;
        opacity: 0.5;
        box-shadow: 0 0 10px #00c6ff;
    }

    100% {
        width: 300px;
        opacity: 1;
        box-shadow: 0 0 25px #00c6ff, 0 0 50px #fff;
    }
}

/* When finished, extend to full width and turn GREEN */
.loader-line.finished {
    animation: none !important;
    width: 90% !important;
    /* Nearly full width */
    max-width: 600px;
    background: #00ffaa !important;
    box-shadow: 0 0 20px #00ffaa, 0 0 40px #00ffaa !important;
    transition: width 0.5s ease, background 0.3s ease;
}
/* =========================================
   RESTORE ORIGINAL "NEON PULSE" ANIMATION
   ========================================= */

/* 1. Re-define the original animation exactly as it was */
@keyframes neonPulseOriginal {
    0% {
        width: 50px;
        opacity: 0.6;
        box-shadow: 0 0 5px #2575fc;
    }

    100% {
        width: min(400px, 90vw);
        opacity: 1;
        box-shadow: 0 0 25px #2575fc, 0 0 50px #6a11cb, 0 0 80px #fff;
    }
}

/* 2. Apply this animation to the line specifically when it is NOT finished */
.loader-line {
    /* Reset any forced overrides */
    animation: neonPulseOriginal 1.2s ease-in-out infinite alternate !important;

    /* Ensure basics are set */
    height: 4px !important;
    background: #fff !important;
    margin: 20px auto !important;
    border-radius: 4px !important;
    display: block !important;
}

/* 3. The Green Finished State (No Animation, Full Width) */
.loader-line.finished {
    animation: none !important;
    /* Stop moving */
    width: 90% !important;
    /* Expand */
    background: #00ffaa !important;
    /* Green */
    box-shadow: 0 0 20px #00ffaa !important;
    transition: width 0.4s ease, background-color 0.4s ease;
}
/* =========================================
   FINAL PRELOADER LINE FIX
   ========================================= */

/* 1. Reset the container to ensure visibility */
#preloader {
    background-color: #000 !important;
    z-index: 99999 !important;
    /* Max Z-index */
}

.loader-content {
    z-index: 100000 !important;
    position: relative;
}

/* 2. Force the line to be visible white block first */
.loader-line {
    /* Dimensions */
    width: 50px;
    height: 4px !important;
    margin: 20px auto !important;

    /* Appearance */
    background-color: #ffffff !important;
    border-radius: 4px;

    /* Force Display */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;

    /* Animation */
    animation: finalPulse 1s ease-in-out infinite alternate !important;
    box-shadow: 0 0 10px #ffffff;
}

/* 3. The Animation Definition */
@keyframes finalPulse {
    0% {
        width: 50px;
        opacity: 0.5;
        box-shadow: 0 0 5px #00c6ff;
    }

    100% {
        width: 300px;
        opacity: 1;
        box-shadow: 0 0 20px #00c6ff, 0 0 40px #ffffff;
    }
}

/* 4. The Finished State */
.loader-line.finished {
    animation: none !important;
    width: 90vw !important;
    background-color: #00ffaa !important;
    box-shadow: 0 0 30px #00ffaa !important;
    opacity: 1 !important;
}
/* =========================================
   ABSOLUTE PRELOADER RESET - THE WHITE LINE
   ========================================= */

/* Nuke previous conflicting keyframes specific to this issue */
.loader-line {
    /* Base Style */
    display: block !important;
    width: 0 !important;
    /* Start small */
    height: 4px !important;
    background-color: #ffffff !important;
    /* Pure White */
    margin: 20px auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 4px;

    /* The Classic Animation - White to Blue Pulse */
    animation: classicLoader 1s ease-in-out infinite alternate !important;
}

@keyframes classicLoader {
    0% {
        width: 10%;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    100% {
        width: 80%;
        box-shadow: 0 0 20px #00c6ff, 0 0 40px #ffffff;
    }
}

/* The Finished State - Turns Green */
.loader-line.finished {
    animation: none !important;
    width: 100% !important;
    background-color: #00ffaa !important;
    box-shadow: 0 0 30px #00ffaa !important;
    transition: background-color 0.3s ease;
}

/* Ensure Preloader Text is visible too */
.loader-text,
.loader-status {
    z-index: 100001;
    position: relative;
    color: #fff;
    opacity: 1 !important;
    visibility: visible !important;
}
/* =========================================
   EMERGENCY FIX: PRELOADER LINE RECOVERY
   ========================================= */

/* 1. Container & Layout */
#preloader {
    display: flex !important;
    justify-content: center;
    align-items: center;
    background: #000 !important;
    z-index: 999999 !important;
}

.loader-content {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    z-index: 1000000;
}

/* 2. The White Line Itself */
.loader-line {
    /* Force Dimensions */
    content: '' !important;
    display: block !important;
    width: 60px !important;
    /* Initial Width */
    height: 4px !important;
    /* Thickness */

    /* Force Color */
    background-color: #ffffff !important;

    /* Positioning */
    margin-top: 20px !important;
    margin-bottom: 20px !important;

    /* Visibility */
    opacity: 1 !important;
    visibility: visible !important;

    /* The Pulse Animation */
    animation: recoveryPulse 0.8s ease-in-out infinite alternate !important;

    /* Glow */
    box-shadow: 0 0 10px #ffffff, 0 0 20px #00c6ff !important;
}

/* 3. The simple pulse animation */
@keyframes recoveryPulse {
    0% {
        width: 60px;
        opacity: 0.7;
    }

    100% {
        width: 250px;
        /* Expands out */
        opacity: 1;
    }
}

/* 4. The Green "Success" State */
.loader-line.finished {
    animation: none !important;
    width: 90vw !important;
    /* Full width */
    max-width: 600px;
    background-color: #00ffaa !important;
    box-shadow: 0 0 30px #00ffaa !important;
    transition: width 0.5s ease, background-color 0.2s ease;
}
/* =========================================
   ANIMATION LOCK FIX - IMPORTANT
   ========================================= */

/* The problem was !important on width preventing animation */

.loader-line {
    /* 1. Define the base visual style */
    display: block !important;
    height: 4px !important;
    background: #ffffff !important;
    margin: 20px auto !important;
    border-radius: 4px;
    opacity: 1 !important;
    visibility: visible !important;

    /* 2. REMOVE !important from width so animation works */
    width: 50px;

    /* 3. Re-apply the Neon Pulse Animation */
    animation: realNeonPulse 1.5s ease-in-out infinite alternate !important;

    /* 4. Glow Logic */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(0, 198, 255, 0.5);
}

@keyframes realNeonPulse {
    0% {
        width: 50px;
        opacity: 0.6;
        box-shadow: 0 0 5px #00c6ff;
    }

    100% {
        width: 300px;
        /* Expands to this width */
        opacity: 1;
        box-shadow: 0 0 20px #00c6ff, 0 0 40px #ffffff;
    }
}

/* 5. The Green Success State */
.loader-line.finished {
    animation: none !important;
    /* Stop the pulse */
    width: 90vw !important;
    /* Force full width */
    max-width: 600px;
    background: #00ffaa !important;
    box-shadow: 0 0 30px #00ffaa !important;

    /* Smooth transition to green */
    transition: width 0.5s ease, background-color 0.3s ease;
}
/* =========================================
   ADVANCED LOADER EFFECT: "DATA STREAM"
   ========================================= */

.loader-line {
    /* Keep the base structure */
    display: block !important;
    height: 4px !important;
    margin: 20px auto !important;
    border-radius: 4px;
    opacity: 1 !important;
    visibility: visible !important;

    /* NEW: Data Stream Gradient Background */
    background: linear-gradient(90deg,
            #ffffff 0%,
            #ffffff 10%,
            #00c6ff 50%,
            #ffffff 90%,
            #ffffff 100%) !important;

    background-size: 200% 100% !important;

    /* Combine the Width Pulse with the Background Flow */
    animation:
        realNeonPulse 1.5s ease-in-out infinite alternate,
        /* Breathing width */
        dataStream 1s linear infinite !important;
    /* Moving light */

    box-shadow: 0 0 15px rgba(0, 198, 255, 0.6);
}

@keyframes dataStream {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Ensure the Pulse Keyframe is safely defined here too */
@keyframes realNeonPulse {
    0% {
        width: 50px;
        opacity: 0.8;
    }

    100% {
        width: 300px;
        opacity: 1;
    }
}

/* The Finished State - Solid Green */
.loader-line.finished {
    background: #00ffaa !important;
    /* fast override */
    animation: none !important;
    width: 90vw !important;
    box-shadow: 0 0 30px #00ffaa !important;
    transition: width 0.5s ease, background 0.2s ease;
}
/* =========================================
   REFINED "CYBER SCANNER" LOADER
   ========================================= */

.loader-line {
    /* Sleek, thin, high-tech look */
    display: block !important;
    height: 3px !important;
    /* Thinner for elegance */
    background: #ffffff !important;
    /* Pure White Core */
    margin: 25px auto !important;
    border-radius: 10px;
    opacity: 1 !important;
    visibility: visible !important;

    /* Strong Electric Blue Outer Glow */
    box-shadow:
        0 0 10px rgba(0, 198, 255, 0.8),
        0 0 20px rgba(0, 198, 255, 0.5),
        0 0 40px rgba(0, 198, 255, 0.3) !important;

    /* Fast, snappy expansion animation */
    animation: cyberScan 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate !important;
}

@keyframes cyberScan {
    0% {
        width: 20px;
        /* Start as a dot */
        opacity: 0.5;
        box-shadow: 0 0 5px rgba(0, 198, 255, 0.5);
    }

    100% {
        width: 250px;
        /* Expand quickly */
        opacity: 1;
        box-shadow:
            0 0 15px #fff,
            /* White hot center */
            0 0 30px #00c6ff,
            /* Blue aura */
            0 0 50px #00c6ff;
        /* Distant glow */
    }
}

/* Green Success State - Clean & Sharp */
.loader-line.finished {
    animation: none !important;
    width: 300px !important;
    /* Don't span full screen, keep it contained */
    background: #00ffaa !important;
    height: 4px !important;
    box-shadow: 0 0 20px #00ffaa, 0 0 40px #00ffaa !important;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}
/* =========================================
   FINAL CLEAN LOADER - RESET & OVERRIDE
   ========================================= */

/* Use ID selector for maximum specificity to override previous mess */
#preloader .loader-line {
    /* 1. Dimensions & Positioning */
    display: block !important;
    height: 4px !important;
    /* Perfect thickness */
    margin: 30px auto !important;
    /* Good spacing */
    border-radius: 2px !important;
    /* Sharp, tech corners */

    /* 2. Visual Style: Pure White with Tech Glow */
    background: #ffffff !important;
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(0, 198, 255, 0.6) !important;

    /* 3. Animation: Smooth Tech Pulse */
    animation: finalTechPulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite alternate !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 60px;
    /* Base width */
}

@keyframes finalTechPulse {
    0% {
        width: 60px;
        opacity: 0.6;
        box-shadow: 0 0 5px #00c6ff;
    }

    100% {
        width: 300px;
        /* Expands significantly */
        opacity: 1;
        box-shadow:
            0 0 20px #ffffff,
            0 0 40px #00c6ff;
    }
}

/* 4. The Success State (Green) */
#preloader .loader-line.finished {
    animation: none !important;
    /* Stop moving */
    width: 100% !important;
    /* Fill width */
    max-width: 600px !important;
    /* Cap it nicely */
    background: #00ffaa !important;
    /* Bright Green */
    box-shadow: 0 0 30px #00ffaa !important;
    transition: width 0.5s ease, background 0.3s ease;
}
/* =========================================
   RESTORE NAME STYLE (OUTLINE) & FINAL LINE
   ========================================= */

/* 1. RESTORE NAME STYLE EXACTLY AS BEFORE */
/* Using ID scope for max priority */
#preloader .loader-text {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;

    /* THE OUTLINE STYLE */
    color: transparent !important;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.8) !important;

    /* Reset any unwanted overrides */
    text-shadow: none !important;
    letter-spacing: 4px !important;
    font-size: clamp(2rem, 5vw, 4rem) !important;
    margin-bottom: 30px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 2. ENSURE LINE IS MOVING (LOADING) */
#preloader .loader-line {
    /* Base */
    display: block !important;
    height: 4px !important;
    margin: 30px auto !important;
    border-radius: 2px;
    background: #fff !important;

    /* Animation: "Scanning/Leading" Movement */
    /* Width changes from small to wide to simulate loading */
    animation: loadingScan 1.5s ease-in-out infinite alternate !important;

    /* Glow */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px #00c6ff !important;
}

@keyframes loadingScan {
    0% {
        width: 50px;
        opacity: 0.6;
    }

    100% {
        width: 300px;
        opacity: 1;
    }
}

/* 3. GREEN FINISH STATE */
#preloader .loader-line.finished {
    animation: none !important;
    width: 600px !important;
    /* Max width */
    max-width: 90vw !important;
    background: #00ffaa !important;
    box-shadow: 0 0 30px #00ffaa !important;
    transition: width 0.5s ease, background 0.3s ease;
}
/* =========================================
   CLEANUP & FINAL RESTORATION OF "MOVING LIKE LOADING"
   ========================================= */

/* 1. Nuke conflicting keyframes by resetting animation property fully */
#preloader .loader-line {
    /* Set dimensions clearly */
    display: block !important;
    height: 4px !important;
    background: #ffffff !important;
    /* Pure White */
    border-radius: 4px !important;
    margin: 30px auto !important;

    /* Animation: This slides back and forth like a classic loading bar */
    animation: slidingLoader 2s ease-in-out infinite alternate !important;

    width: 100px;
    /* Start width */
    opacity: 1 !important;
    visibility: visible !important;

    /* Subtle glow */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px #2575fc !important;
}

@keyframes slidingLoader {
    0% {
        width: 50px;
        transform: translateX(-100px);
    }

    100% {
        width: 300px;
        transform: translateX(100px);
    }
}

/* 2. Finished State (Full Width, Green) */
#preloader .loader-line.finished {
    animation: none !important;
    transform: translateX(0) !important;
    /* Center it */
    width: 90vw !important;
    /* Max width */
    max-width: 600px !important;
    background: #00ffaa !important;
    box-shadow: 0 0 20px #00ffaa !important;
    transition: width 0.5s ease, background 0.3s ease;
}
/* =========================================
   CLASSIC LOADING BAR (FILL EFFECT)
   ========================================= */

#preloader .loader-line {
    /* Container for the loading bar */
    display: block !important;
    width: 300px !important;
    /* Fixed container width */
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    /* Dim background track */
    border-radius: 4px !important;
    margin: 30px auto !important;
    overflow: hidden !important;
    /* Clip the moving part */
    position: relative !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    /* Stop moving the container */
}

/* The Moving "Fill" Part using ::after */
#preloader .loader-line::after {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    /* White moving bar */
    border-radius: 4px !important;
    position: absolute !important;
    top: 0;
    left: 0;

    /* Animation: Fill from 0% width to 100% width */
    animation: simpleLoading 2s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
    transform-origin: left;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes simpleLoading {
    0% {
        width: 0%;
        opacity: 1;
    }

    50% {
        width: 70%;
        opacity: 1;
    }

    100% {
        width: 100%;
        opacity: 0;
        /* Fade out at end to loop nicely */
    }
}

/* Finished State */
#preloader .loader-line.finished {
    width: 90vw !important;
    /* Container grows */
    max-width: 600px !important;
    background: transparent !important;
    /* Hide track */
}

#preloader .loader-line.finished::after {
    animation: none !important;
    width: 100% !important;
    background: #00ffaa !important;
    /* Turn Green */
    box-shadow: 0 0 20px #00ffaa !important;
    opacity: 1 !important;
    transition: background 0.3s ease;
}
/* =========================================
   ENHANCED LOADING BAR (ELECTRIC FLOW)
   ========================================= */

#preloader .loader-line {
    /* The Track */
    display: block !important;
    width: 300px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
    margin: 30px auto !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* The Moving Electric Fill */
#preloader .loader-line::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0;
    left: 0;
    height: 100% !important;
    width: 100% !important;

    /* Graduate from transparent to white */
    background: linear-gradient(90deg, transparent, #fff) !important;

    /* Animation: "Shooting" across */
    animation: electricShoot 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;

    /* Glow */
    box-shadow: 0 0 15px #fff, 0 0 30px #00c6ff !important;
    border-radius: 4px;
}

@keyframes electricShoot {
    0% {
        transform: translateX(-100%);
        /* Start completely off-left */
    }

    50% {
        transform: translateX(0%);
        /* Fill the bar */
    }

    100% {
        transform: translateX(100%);
        /* Exit to right */
    }
}

/* Finished State (Solid Green) */
#preloader .loader-line.finished {
    width: 90vw !important;
    max-width: 600px !important;
    background: transparent !important;
    box-shadow: none !important;
}

#preloader .loader-line.finished::after {
    animation: none !important;
    transform: translateX(0) !important;
    background: #00ffaa !important;
    /* Solid Green */
    box-shadow: 0 0 20px #00ffaa, 0 0 40px #00ffaa !important;
    width: 100% !important;
}
/* =========================================
   ULTRA-PRO MATERIAL LOADER (CLEAN & SMOOTH)
   ========================================= */

/* 1. The Track (Static Background) */
#preloader .loader-line {
    /* Reset & Positioning */
    display: block !important;
    position: relative !important;
    width: 250px !important;
    /* Elegant standard width */
    height: 3px !important;
    /* Thinner = More Pro */
    margin: 30px auto !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    /* Subtle track */
    border-radius: 3px !important;
    overflow: hidden !important;
    /* Clip the moving parts */

    /* Clean up previous styles */
    box-shadow: none !important;
    border: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: none !important;
    /* Track doesn't move */
}

/* 2. The Moving Head (Primary Line) */
#preloader .loader-line::before {
    content: '';
    position: absolute;
    background-color: #ffffff;
    /* Pure White */
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;

    /* Complex Pro Animation */
    animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite !important;
    display: block !important;

    /* Optional: Subtle Glow */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 3. The Chasing Tail (Secondary Line) */
#preloader .loader-line::after {
    content: '';
    position: absolute;
    background-color: #ffffff;
    /* Pure White */
    top: 0;
    left: 0;
    bottom: 0;
    will-change: left, right;

    /* Offset Animation */
    animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite !important;
    animation-delay: 1.15s !important;
    display: block !important;
}

/* =========================================
   ANIMATION KEYFRAMES (Standard Material Design)
   ========================================= */

@keyframes indeterminate {
    0% {
        left: -35%;
        right: 100%;
    }

    60% {
        left: 100%;
        right: -90%;
    }

    100% {
        left: 100%;
        right: -90%;
    }
}

@keyframes indeterminate-short {
    0% {
        left: -200%;
        right: 100%;
    }

    60% {
        left: 107%;
        right: -8%;
    }

    100% {
        left: 107%;
        right: -8%;
    }
}

/* =========================================
   FINISHED STATE (Solid Green)
   ========================================= */
#preloader .loader-line.finished {
    width: 500px !important;
    /* Expand width */
    max-width: 90vw !important;
    background-color: #00ffaa !important;
    /* Turn Green */
    box-shadow: 0 0 20px #00ffaa !important;
    overflow: visible !important;
    transition: width 0.5s ease, background-color 0.3s ease;
}

/* Hide animations when finished */
#preloader .loader-line.finished::before,
#preloader .loader-line.finished::after {
    display: none !important;
}
/* =========================================
   PREMIUM "NANO" BUTTONS (HERO)
   ========================================= */

/* Base Button Style */
.hero-buttons .btn {
    font-family: 'Oswald', sans-serif !important;
    /* Premium Heading Font */
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 15px 40px !important;
    border-radius: 2px !important;
    /* Sharp, Technical Look */
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    z-index: 1;
}

/* 1. PRIMARY BUTTON: "VIEW MY WORK" - Electric Blue Fill */
.hero-buttons .btn-primary {
    background: #00c6ff !important;
    color: #000 !important;
    border: 1px solid #00c6ff !important;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.4);
    /* Continuous Pulse Animation */
    animation: btnGlowPulse 2s infinite alternate;
}

.hero-buttons .btn-primary:hover {
    background: #fff !important;
    color: #00c6ff !important;
    box-shadow: 0 0 40px rgba(0, 198, 255, 0.8), 0 0 10px #fff;
    transform: translateY(-3px) scale(1.05);
}

/* 2. SECONDARY BUTTON: "GET IN TOUCH" - Glass/Holo */
.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(5px);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #00ffaa !important;
    color: #00ffaa !important;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.3);
    transform: translateY(-3px);
}

/* MATION: Sweep Effect on Hover */
.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

/* Idle Pulse Animation */
@keyframes btnGlowPulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 198, 255, 0.2);
    }

    100% {
        box-shadow: 0 0 25px rgba(0, 198, 255, 0.6);
    }
}
/* =========================================
   MOBILE BUTTON FIXES
   ========================================= */

@media (max-width: 768px) {

    /* Stack buttons vertically on mobile */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        /* Space between stacked buttons */
        width: 100%;
        max-width: 300px;
        /* Keep them contained */
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        /* Full width */
        margin: 0 !important;
        /* Remove side margins */
        padding: 15px 0 !important;
        /* Comfortable tap area */
        font-size: 0.9rem !important;
        /* Slightly smaller text */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Ensure shadows don't get too crazy on small screens */
    .hero-buttons .btn-primary {
        box-shadow: 0 0 15px rgba(0, 198, 255, 0.3) !important;
    }
}
/* =========================================
   NAME ANIMATION (ON ACCESS GRANTED)
   ========================================= */

#preloader .loader-text.finished {
    /* 1. Switch to Solid Color */
    color: #ffffff !important;
    -webkit-text-stroke: 0 !important;

    /* 2. Intense Glow */
    text-shadow:
        0 0 10px rgba(0, 198, 255, 0.8),
        0 0 20px rgba(0, 198, 255, 0.6),
        0 0 40px rgba(0, 255, 170, 0.4) !important;

    /* 3. The "Snap/Glitch" Animation */
    animation: nameSnap 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

@keyframes nameSnap {
    0% {
        transform: scale(1);
        letter-spacing: 4px;
        /* Start normal */
        filter: blur(0px);
    }

    30% {
        transform: scale(1.1);
        /* Pop up */
        color: #00c6ff;
        /* Flash Blue */
        letter-spacing: 10px;
        /* Expand */
        filter: blur(2px);
    }

    60% {
        transform: scale(0.95);
        color: #fff;
        letter-spacing: 4px;
        filter: blur(0px);
    }

    100% {
        transform: scale(1);
        color: #ffffff;
        letter-spacing: 6px;
        /* Settle slightly wider for impact */
    }
}
/* =========================================
   NEW STYLE FOR PRELOADER NAME (CYBER)
   ========================================= */

#preloader .loader-text {
    /* Reset Outline Style */
    -webkit-text-stroke: 0 !important;
    color: #ffffff !important;
    /* Solid White */

    /* New Premium Font Style */
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 8px !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;

    /* Cyber Glow */
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(0, 198, 255, 0.4) !important;

    opacity: 1 !important;
    visibility: visible !important;
    text-transform: uppercase !important;
}

/* Enhancing the "Finished" State */
#preloader .loader-text.finished {
    /* When unlocked, it turns Neon Blue */
    color: #00c6ff !important;
    text-shadow:
        0 0 20px #00c6ff,
        0 0 40px #00c6ff,
        0 0 80px #fff !important;
    letter-spacing: 12px !important;
    /* Expands */
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1) !important;
}
/* =========================================
   "STEALTH MILITARY" NAME STYLE
   ========================================= */

#preloader .loader-text {
    /* 1. Base Font Styling */
    color: #444 !important;
    /* Dark Grey (Stealth) */
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(2rem, 5vw, 4rem) !important;
    letter-spacing: 0px !important;
    /* Tighter initially */
    text-transform: uppercase !important;

    /* 2. Metallic Gradient Effect */
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;

    /* 3. Subtle Shadow */
    filter: drop-shadow(0 2px 0px #333);
}

/* 4. The "Activation" Animation (On ACCESS GRANTED) */
#preloader .loader-text.finished {
    /* Turns into a bright light source */
    background: #fff !important;
    -webkit-text-fill-color: #fff !important;

    /* Glitch/Shake Effect */
    animation: activateText 0.4s steps(2, end) !important;

    /* Final State */
    text-shadow: 0 0 30px rgba(255, 255, 255, 1);
    letter-spacing: 1px !important;
}

@keyframes activateText {
    0% {
        transform: translate(2px, 0);
        opacity: 0.8;
    }

    25% {
        transform: translate(-2px, 0);
        opacity: 1;
        color: #00ffaa;
    }

    50% {
        transform: translate(2px, 0);
        opacity: 0.8;
    }

    75% {
        transform: translate(-2px, 0);
        opacity: 1;
        color: #00c6ff;
    }

    100% {
        transform: translate(0, 0);
        opacity: 1;
        color: #fff;
    }
}
/* =========================================
   MOBILE NAME SIZE FIX
   ========================================= */

@media (max-width: 768px) {
    #preloader .loader-text {
        /* Force smaller font size on mobile */
        font-size: 1.8rem !important;

        /* Reduce letter spacing so it fits */
        letter-spacing: 2px !important;

        /* Ensure it wraps if needed, but stays centered */
        width: 90%;
        margin: 0 auto 20px auto !important;
        line-height: 1.2;
    }

    /* Reduce the expansion effect on mobile so it doesn't break the screen */
    #preloader .loader-text.finished {
        letter-spacing: 4px !important;
        /* Smaller expansion */
    }

    /* Center the line properly */
    #preloader .loader-line {
        width: 70% !important;
        /* Smaller line width */
    }

    /* Keep the status text small */
    #preloader .status-text {
        font-size: 0.8rem !important;
    }
}
/* =========================================
   "ELECTRIC GRADIENT" NAME STYLE
   ========================================= */

#preloader .loader-text {
    /* 1. Base Reset */
    font-family: 'Oswald', sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;

    /* 2. The Gradient Texture */
    background: linear-gradient(135deg,
            #ffffff 0%,
            #00c6ff 50%,
            #ffffff 100%) !important;
    background-size: 200% auto !important;

    /* 3. Clip Background to Text */
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    -webkit-text-stroke: 0 !important;

    /* 4. Animation: Shimmering Flow */
    animation: shineFlow 3s linear infinite !important;

    /* 5. Size Control */
    font-size: clamp(2rem, 5vw, 4rem) !important;
    margin-bottom: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    filter: drop-shadow(0 0 10px rgba(0, 198, 255, 0.3));
}

@keyframes shineFlow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* 6. Finished State (Access Granted) */
#preloader .loader-text.finished {
    /* Turns Solid White with Blue Aura */
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
    text-shadow: 0 0 20px #00c6ff, 0 0 40px #00c6ff !important;
    transform: scale(1.05);
    transition: all 0.5s ease;
}

/* 7. Mobile Optimization Included */
@media (max-width: 768px) {
    #preloader .loader-text {
        font-size: 2rem !important;
        /* Force smaller size */
        letter-spacing: 1px !important;
        width: 90%;
        margin: 0 auto 20px auto !important;
    }
}
/* =========================================
   MOBILE NAME SIZE FIX (FINAL)
   ========================================= */

@media (max-width: 768px) {

    /* 1. Force the name container to fit */
    #preloader .loader-text {
        font-size: 1.5rem !important;
        /* Safety size for long names */
        letter-spacing: 1px !important;
        width: 95% !important;
        max-width: 300px;
        margin: 0 auto 15px auto !important;
        white-space: normal !important;
        /* Allow wrapping if needed */
        line-height: 1.2 !important;
        text-align: center !important;
    }

    /* 2. Control the "Finished" Expansion */
    #preloader .loader-text.finished {
        transform: scale(1.02) !important;
        /* Subtle pop only */
        font-size: 1.6rem !important;
        /* Don't grow too big */
        letter-spacing: 2px !important;
        /* Limited spread */
    }

    /* 3. Ensure Container is flex centered */
    .loader-content {
        padding: 0 10px;
        width: 100%;
        overflow: hidden;
        /* Prevent horizontal scroll */
    }
}
/* =========================================
   NAME SHADOW FIX: SOFT & UNIFORM
   ========================================= */

#preloader .loader-text {
    /* 1. Reset Text Shadow to be softer */
    text-shadow:
        0 0 15px rgba(0, 198, 255, 0.4),
        /* Soft Blue Glow */
        0 0 5px rgba(255, 255, 255, 0.2) !important;

    /* 2. Remove the Drop Shadow filter (the "line" source) */
    filter: none !important;

    /* 3. Ensure clean opacity */
    opacity: 1 !important;
}

#preloader .loader-text.finished {
    /* When finished, soft white glow, no hard lines */
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
}

/* 4. Fix Gradient to be smoother/subtle */
#preloader .loader-text {
    background: linear-gradient(120deg,
            #ffffff 20%,
            #e0f7fa 50%,
            #ffffff 80%) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
/* Snapchat Button Style */
.social-btn.snapchat {
    background: linear-gradient(45deg, #fffc00, #ffffff);
    color: #000;
    box-shadow: 0 5px 15px rgba(255, 252, 0, 0.3);
}

.social-btn.snapchat:hover {
    box-shadow: 0 8px 25px rgba(255, 252, 0, 0.6);
    transform: translateY(-3px);
}
/* =========================================
   ICON STYLE UPGRADE (SOCIAL & PROJECTS)
   ========================================= */

/* 1. SOCIAL MEDIA ICONS - NEON ORBS */
.social-btn {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    /* Circle */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5) !important;
    margin: 0 10px !important;
    position: relative;
    overflow: hidden;
}

/* Hide text label to make it purely iconic (Modern style) */
.social-btn span {
    display: none !important;
}

/* Icon size inside button */
.social-btn i {
    font-size: 1.5rem !important;
    z-index: 2;
    transition: transform 0.3s;
}

/* Hover Effects */
.social-btn:hover {
    transform: translateY(-5px) scale(1.1) !important;
}

.social-btn:hover i {
    transform: scale(1.2);
}

/* INSTAGRAM GLOW */
.social-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    box-shadow: 0 0 20px rgba(214, 36, 159, 0.6) !important;
    border-color: transparent !important;
    color: white !important;
}

/* SNAPCHAT GLOW */
.social-btn.snapchat:hover {
    background: #fffc00 !important;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(255, 252, 0, 0.6) !important;
    border-color: transparent !important;
}

/* WHATSAPP GLOW */
.social-btn.whatsapp:hover {
    background: #25D366 !important;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6) !important;
    border-color: transparent !important;
    color: white !important;
}

/* 2. PROJECT ICONS - HOLOGRAPHIC HEXAGONS */
.project-icon {
    width: 70px !important;
    height: 70px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(0, 198, 255, 0.3) !important;
    border-radius: 10px !important;
    /* Squircle */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.1);
}

.project-icon i {
    font-size: 2rem !important;
    background: -webkit-linear-gradient(#fff, #00c6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(0, 198, 255, 0.5));
}

/* Hover Pulse */
.project-card:hover .project-icon {
    border-color: #00ffaa !important;
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.2) !important;
    animation: iconPulse 1s infinite alternate;
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}
/* Fix Background Clip Compatibility */
.project-icon i {
    background-clip: text !important;
    -webkit-background-clip: text !important;
}
