/* --- Variables & Reset --- */
:root {
    --bg-dark: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-color: #00f2ea;
    --accent-gradient: linear-gradient(135deg, #00f2ea 0%, #0078d7 100%);
    --font-main: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

/* --- Dynamic Background --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 242, 234, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 120, 215, 0.08), transparent 25%);
    animation: bgPulse 10s ease-in-out infinite alternate;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    pointer-events: none;
}

@keyframes bgPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #fff;
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.text-accent {
    color: var(--accent-color);
    font-family: var(--font-code);
}

/* --- Navbar --- */
.navbar {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--card-border);
    padding: 15px 0;
}

.navbar-brand {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff !important;
}

.brand-bracket {
    color: var(--accent-color);
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    margin-left: 20px;
    position: relative;
    letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none;
}
.navbar-toggler-icon {
    filter: invert(1);
}

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

.section-title {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-title .line {
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* --- Hero Section --- */
.profile-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a1a1a;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

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

.profile-glow {
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    border-radius: 50%;
    background: var(--accent-gradient);
    z-index: 1;
    filter: blur(25px);
    opacity: 0.5;
    animation: glowPulse 3s infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.05); }
}

.hero-title {
    font-size: 4rem;
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
    letter-spacing: -2px;
}

.hero-subtitle {
    font-family: var(--font-code);
    font-size: 1.1rem;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

/* Scroll Down Indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.scroll-down-indicator:hover {
    opacity: 1;
    color: var(--accent-color);
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: scrollArrow 1.5s infinite;
    animation-delay: 0.2s;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px, -5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px, 5px); }
}


/* --- Glass Cards (General) --- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(0, 242, 234, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

/* --- Portfolio Specifics --- */
.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h5 {
    font-family: var(--font-code);
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.card-footer-custom {
    margin-top: 1.5rem;
}

.btn-row {
    display: flex;
    gap: 10px;
}

.btn-row .btn {
    flex: 1;
}

/* --- Buttons --- */
.btn-primary-custom {
    background: var(--accent-gradient);
    border: none;
    color: #000;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 50px; /* Modern pill shape */
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.3);
}

.btn-primary-custom:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 242, 234, 0.5);
    color: #000;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--card-border);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
}

.btn-outline-custom:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 242, 234, 0.05);
}

/* --- Skills Section --- */
.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-tag {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--card-border);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-code);
    font-size: 0.85rem;
    color: #d0d0d0;
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(0, 242, 234, 0.1);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

/* --- Certifications --- */
.cert-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
}

.cert-icon {
    font-size: 2.5rem;
    margin-right: 1.5rem;
    filter: drop-shadow(0 0 5px var(--accent-color));
}

.cert-card h5 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.cert-card small {
    color: var(--text-muted);
}

/* --- Contact Icons --- */
.contact-icon {
    width: 50px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.2));
    transition: transform 0.3s ease;
}

.glass-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }

    .btn-row {
        flex-direction: column;
    }

    section {
        padding: 80px 0;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-left: 0 !important;
    }
}
