/* 
====================================================================
   PREMIUM GLASSMORPHISM PORTFOLIO STYLES
   Author: M Suhaib
   Theme: Vibrant Dark Mode First with Neon Accents
====================================================================
*/

/* --- CSS VARIABLES & THEME TOKENS --- */
:root {
    /* Color Palette - Dark Base */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-main: #f0f0f5;
    --text-muted: #a0a0b0;

    /* Vibrant Neon Accents */
    --accent-cyan: #00f2fe;
    --accent-blue: #4facfe;
    --accent-purple: #b300ff;
    --accent-pink: #ff007f;
    --accent-orange: #ff7e5f;
    --accent-yellow: #feb47b;
    --accent-green: #00f260;

    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    --grad-secondary: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    --grad-tertiary: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
    --grad-quaternary: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;

    /* Layout & Spacing */
    --nav-height: 80px;
    --container-width: 1200px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;

    /* Transitions */
    --trans-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --trans-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Mode Variables (If toggled) */
[data-theme="light"] {
    --bg-dark: #f8f9fa;
    --bg-darker: #ffffff;
    --text-main: #1a1a24;
    --text-muted: #5a5a6a;

    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-bg-hover: rgba(0, 0, 0, 0.06);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-border-light: rgba(0, 0, 0, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

/* --- RESET & BASE STYLES --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    position: relative;
    transition: background-color var(--trans-slow), color var(--trans-slow);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

/* --- GLOBAL BACKGROUND ANIMATIONS --- */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
    background: var(--bg-darker);
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatBlob 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: var(--accent-pink);
    animation-delay: -10s;
    animation-duration: 30s;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.3);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

[data-theme="light"] .glass-overlay {
    background: rgba(248, 249, 250, 0.5);
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* --- SCROLL PROGRESS --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--grad-primary);
    width: 0%;
    z-index: 9999;
    box-shadow: 0 0 10px var(--accent-cyan);
    transition: width 0.1s ease-out;
}

/* --- UTILITIES & GLASSMORPHISM CLASSES --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: all var(--trans-normal);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    pointer-events: none;
}

.glass-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-light);
    transform: translateY(-5px);
}

.glass-card-inner {
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .glass-card-inner {
    background: rgba(255, 255, 255, 0.4);
}

.glass-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--trans-fast);
}

.glass-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
}

.glass-header {
    text-align: center;
    margin-bottom: 4rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: fit-content;
    padding: 1rem 3rem;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

/* Gradients */
.gradient-text {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.gradient-text-alt {
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.gradient-bg {
    background: var(--grad-primary);
}

.gradient-bg-2 {
    background: var(--grad-secondary);
}

.gradient-bg-3 {
    background: var(--grad-tertiary);
}

.gradient-bg-4 {
    background: var(--grad-quaternary);
}

.icon-gradient-1 {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-gradient-2 {
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-gradient-3 {
    background: var(--grad-tertiary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-gradient-4 {
    background: var(--grad-quaternary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    transition: all var(--trans-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-small {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    z-index: -1;
    transition: opacity var(--trans-normal);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border: none;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #128c7e, #075e54);
    z-index: -1;
    transition: opacity var(--trans-normal);
    opacity: 0;
}

.btn-whatsapp:hover::before {
    opacity: 1;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.glow-effect:hover {
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.6), 0 0 10px rgba(79, 172, 254, 0.4) inset;
    transform: translateY(-2px);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border-light);
    color: var(--text-main);
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

/* Animations & Effects */
.hover-float {
    transition: transform var(--trans-normal), box-shadow var(--trans-normal);
}

.hover-float:hover {
    transform: translateY(-10px);
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(179, 0, 255, 0.2);
    border-color: rgba(179, 0, 255, 0.4);
}

.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Typography styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: inline-block;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Component Layouts */
.flex-grid {
    display: flex;
    gap: 1.5rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.layout-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.layout-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.flex-col-gap {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.flex-wrap-center {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.text-center {
    text-align: center;
}

/* --- NAVIGATION BAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: all var(--trans-normal);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border-light);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-secondary);
    font-weight: 800;
    font-size: 1.5rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.mobile-socials, .mobile-whatsapp {
    display: none;
}

.nav-link {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-muted);
    transition: color var(--trans-fast);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-primary);
    transition: width var(--trans-fast);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after,
.nav-link:hover::after {
    width: 100%;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all var(--trans-fast);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(15deg);
    color: var(--accent-cyan);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: all var(--trans-fast);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: var(--accent-cyan);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: var(--accent-pink);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-text {
    padding: 3.5rem;
}

.badge-glowing {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 242, 254, 0.3);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.animated-roles {
    font-size: 2rem;
    font-family: var(--font-secondary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    height: 3rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    padding: 10px;
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-light);
    box-shadow: 0 0 40px rgba(0, 242, 254, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--bg-dark);
}

.circle-decoration {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    border: 2px dashed var(--accent-purple);
    opacity: 0.5;
    animation: rotateOuter 20s linear infinite;
    z-index: -1;
}

@keyframes rotateOuter {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse-scroll {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
}

.mouse-scroll::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 20px);
        opacity: 0;
    }
}

/* --- ABOUT SECTION --- */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-text p:last-of-type {
    margin-bottom: 2rem;
}

.about-details {
    margin-bottom: 2rem;
}

.detail-box {
    flex: 1;
}

.detail-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-box h3 i {
    color: var(--accent-purple);
}

.detail-box p {
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.value-item i {
    font-size: 1.2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* --- SKILLS SECTION --- */
.skill-category {
    padding: 2rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.skill-val {
    color: var(--text-muted);
}

.glass-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    position: relative;
    /* Initial width 0 for animation, width set inline in HTML */
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    animation: shimmer 2s infinite linear;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.skill-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-md);
    width: 140px;
}

.skill-badge i {
    font-size: 2rem;
}

/* Text Colors for Icons */
.text-orange {
    color: #f39c12;
}

.text-cyan {
    color: #00f2fe;
}

.text-purple {
    color: #9b59b6;
}

.text-yellow {
    color: #f1c40f;
}

.text-pink {
    color: #ff007f;
}

.text-green {
    color: #2ecc71;
}

.margin-top-lg {
    margin-top: 3rem;
}

/* --- PROJECTS SECTION --- */
.project-card {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--trans-normal);
    border: none;
    border-radius: 0;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(20px);
    transition: transform var(--trans-normal);
    padding: 0;
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.flex-gap {
    display: flex;
    gap: 1rem;
}

.flex-grow {
    flex: 1;
}

.mt-4 {
    margin-top: 1.5rem;
}

/* --- SERVICES SECTION --- */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
}

.margin-center {
    margin: 0 auto;
}

.margin-top-md {
    margin-top: 1.5rem;
}

.margin-bottom-sm {
    margin-bottom: 0.5rem;
}

.margin-bottom-md {
    margin-bottom: 1.5rem;
}

.padding-xl {
    padding: 3rem 2rem;
}

.text-sm {
    font-size: 0.9rem;
}

.text-xs {
    font-size: 0.8rem;
}

.full-width {
    width: 100%;
}

.text-left {
    text-align: left;
}

.highlight-border-left {
    border-left: 3px solid var(--accent-cyan);
    padding-left: 0.8rem !important;
    margin-bottom: 0.5rem;
}

.animated-border {
    position: relative;
}

.animated-border::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--grad-primary);
    transition: width var(--trans-normal);
}

.animated-border:hover::after {
    width: 100%;
}

/* --- CERTIFICATES SECTION --- */
.certificate-card {
    padding: 0;
}

.certificate-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.2);
    transition: transform var(--trans-normal);
}

.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--trans-normal);
    border: none;
    border-radius: 0;
}

.certificate-card:hover .certificate-overlay {
    opacity: 1;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.05);
}

.certificate-content {
    padding: 1.5rem;
}

.text-md {
    font-size: 1.2rem;
}

.text-muted {
    color: var(--text-muted);
}

/* --- TESTIMONIALS SECTION --- */
.circle-img-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    font-family: var(--font-secondary);
}

.margin-left-md {
    margin-left: 1rem;
}

.shadow-md {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.style-italic {
    font-style: italic;
}

/* --- CONTACT SECTION --- */
.contact-form {
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control, .glass-input {
    width: 100%;
    padding: 1rem 1.2rem;
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    color: var(--text-main);
    transition: all var(--trans-fast);
}

.glass-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border-light);
    backdrop-filter: blur(10px);
}

.glass-input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

[data-theme="light"] .glass-input {
    background: rgba(255, 255, 255, 0.5);
}

.glass-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

[data-theme="light"] .glass-input:focus {
    background: rgba(255, 255, 255, 0.8);
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.hover-link {
    transition: color var(--trans-fast);
}

.hover-link:hover {
    color: var(--accent-cyan);
}

/* --- FOOTER --- */
.footer {
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border-light);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all var(--trans-normal);
}

.social-link:hover {
    transform: translateY(-5px);
}

.social-link.github:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.social-link.linkedin:hover {
    background: #0077b5;
    color: #fff;
    border-color: #0077b5;
}

.social-link.twitter:hover {
    background: #1da1f2;
    color: #fff;
    border-color: #1da1f2;
}

.social-link.instagram:hover {
    background: #e1306c;
    color: #fff;
    border-color: #e1306c;
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0, 0, 0, 0.05);
}

/* --- ANIMATION CLASSES (Triggered by JS) --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- TOAST NOTIFICATION --- */
.toast-popup {
    position: fixed;
    bottom: 30px;
    right: -100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 242, 254, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 242, 254, 0.2);
    transition: right 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-popup.show {
    right: 30px;
}

@media (max-width: 480px) {
    .toast-popup {
        bottom: 20px;
        right: -100%;
        left: 20px;
        padding: 1rem;
        transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        transform: translateY(150%);
    }
    
    .toast-popup.show {
        right: 20px;
        transform: translateY(0);
    }
}

[data-theme="light"] .toast-popup {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 242, 254, 0.5);
}

.toast-icon {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.toast-content h4 {
    margin-bottom: 0.25rem;
    color: var(--text-main);
    font-size: 1.1rem;
}

.toast-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .profile-image {
        width: 320px;
        height: 320px;
    }

    .layout-3-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14.5px;
    }

    /* Navbar Adjustment */
    .navbar:not(.scrolled) {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding-top: 15px;
        height: calc(var(--nav-height) + 15px);
    }
    
    .logo {
        position: relative;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background: linear-gradient(rgba(10, 10, 15, 0.90), rgba(10, 10, 15, 0.95)), url('IMAGEPROFILECV1.JPG') center/cover no-repeat;
        flex-direction: column;
        justify-content: center;
        transition: left 0.4s ease;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .mobile-socials {
        display: flex;
        gap: 1.5rem;
        justify-content: center;
        margin-bottom: 2rem;
    }
    
    .mobile-socials a {
        font-size: 2rem;
        color: var(--text-main);
        transition: all var(--trans-fast);
        opacity: 0.8;
    }
    
    .mobile-socials a:hover {
        color: var(--accent-cyan);
        opacity: 1;
        transform: scale(1.1);
    }

    .mobile-whatsapp {
        display: block;
        width: 100%;
        padding: 0 2rem;
        margin-top: 1.5rem;
    }

    [data-theme="light"] .nav-menu {
        background: linear-gradient(rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.95)), url('IMAGEPROFILECV1.JPG') center/cover no-repeat;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    /* Global Layout Adjustments */
    .container {
        padding: 0 1.5rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .hero-image-wrapper {
        margin-bottom: 2rem;
    }

    .hero-text {
        padding: 1.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        margin: 0 auto 2rem auto;
    }

    .layout-2-col,
    .layout-3-col,
    .grid-layout {
        grid-template-columns: 1fr;
    }

    .about-details {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }

    :root {
        --nav-height: 40px;
    }

    section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .glass-card {
        padding: 1rem;
    }

    .hero-text {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }

    .profile-image {
        width: 170px;
        height: 170px;
    }

    .project-image {
        height: 160px;
    }
    
    .certificate-image {
        height: 180px;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    .btn-small {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .hero-content {
        gap: 1rem;
    }

    .project-buttons {
        flex-direction: column;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .glass-header {
        padding: 0.8rem 1rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
    }

    .project-content {
        padding: 1rem;
    }

    /* Mobile specific layout fixes for broken elements */
    .padding-xl {
        padding: 1rem !important;
    }

    .padding-lg {
        padding: 0.8rem !important;
    }

    .contact-form {
        padding: 1rem 0;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.8rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .social-links, .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .contact-form {
        padding: 2rem;
    }
    .footer-content {
        text-align: center;
    }
    .footer-links {
        align-items: center;
    }
}

/* Base Utility Classes used in HTML but undefined */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-between-center {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.gap-sm {
    gap: 0.5rem;
}

.gap-md {
    gap: 1.5rem;
}

.flex-col-gap-sm {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.flex-col-start {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.list-none {
    list-style: none;
    padding: 0;
    margin: 0;
}

.padding-none {
    padding: 0;
}

.mt-5 {
    margin-top: 2rem;
}

.pt-4 {
    padding-top: 1rem;
}

.margin-top-2xl {
    margin-top: 3rem;
}

.padding-y-2xl {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.icon-only, .icon-only-sm {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.icon-only {
    width: 45px;
    height: 45px;
}

.icon-only-sm {
    width: 35px;
    height: 35px;
}

.flex-wrap-gap-sm {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
