/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;900&family=Space+Grotesk:wght@300;400;500;700&display=swap');

:root {
    --bg-main: #060913;
    --bg-soft: #0a0f1d;
    --accent: #00f0ff;
    --accent-hover: #00c3ff;
    --accent-soft: rgba(0, 240, 255, 0.1);
    --text-main: #f0f4f8;
    --text-muted: #8b9bb4;
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-shadow: 0 0 15px rgba(0, 240, 255, 0.4), 0 0 30px rgba(0, 240, 255, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.fw-black {
    font-weight: 900;
}

.text-accent {
    color: var(--accent) !important;
}

.bg-dark {
    background-color: var(--bg-main) !important;
}

.bg-dark-subtle {
    background-color: var(--bg-soft) !important;
}

.text-secondary {
    color: var(--text-muted) !important;
}

.bg-accent-soft {
    background-color: var(--accent-soft) !important;
}

.badge-accent {
    background-color: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}

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

/* Selection */
::selection {
    background: var(--accent);
    color: #000;
}

/* Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

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

.loader-text {
    font-family: 'Outfit';
    font-weight: 900;
    font-size: 5rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    position: relative;
    overflow: hidden;
    letter-spacing: 5px;
}

.loader-text::before {
    content: 'SG';
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    color: var(--accent);
    -webkit-text-stroke: 0;
    overflow: hidden;
    animation: loadText 1.5s ease-in-out forwards;
}

.loader-bar {
    width: 250px;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

.loader-bar::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--accent);
    animation: loadBar 1.5s ease-in-out forwards;
    box-shadow: var(--neon-shadow);
    border-radius: 3px;
}

@keyframes loadText {
    100% {
        width: 100%;
    }
}

@keyframes loadBar {
    100% {
        left: 100%;
    }
}

/* Particle Canvas */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

/* Utilities */
.section-padding {
    padding: 120px 0;
}

.z-index-1 {
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent) 0%, #b400ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.outline-accent {
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.outline-accent:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

/* Glassmorphism */
.glass-nav {
    background: rgba(6, 9, 19, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s ease;
}

.glass-card {
    background-image: url();
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Outfit';
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.5rem 1.2rem;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s;
}

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

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: 0.3s ease;
    box-shadow: var(--neon-shadow);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 60%;
}

/* Buttons */
.custom-btn {
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    z-index: -1;
    transition: 0.4s;
}

.custom-btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #000;
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    background-color: #fff;
    border-color: #fff;
    color: #000;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

.btn-outline-light {
    border-color: var(--glass-border);
    color: #fff;
}

.btn-outline-light:hover {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
}

/* Typography */
.neon-text {
    text-shadow: var(--neon-shadow);
}

.section-title {
    font-family: 'Outfit';
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 4px;
}

/* Hero Shapes */
.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: -2px;
    line-height: 1.1;
}

.hero-graphic {
    width: 350px;
    height: 350px;
    margin: auto;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    z-index: -1;
    animation: float 8s infinite alternate ease-in-out;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: rgba(0, 240, 255, 0.3);
    top: -50px;
    left: -50px;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(180, 0, 255, 0.3);
    bottom: -30px;
    right: 0px;
    animation-delay: -3s;
    animation-duration: 10s;
}

.hero-avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 240, 255, 0.2);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Scroll Down indicator */
.scroll-down-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 1.5rem;
    color: var(--text-muted);
    opacity: 0.7;
    transition: 0.3s;
}

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

.blink {
    animation: blinker 2s cubic-bezier(0.5, 0, 1, 1) infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
        transform: translateY(10px);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px) scale(1);
    }

    100% {
        transform: translateY(-30px) scale(1.1);
    }
}

/* Skills Section */
.skill-card {
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-icon {
    font-size: 3.5rem;
    transition: 0.4s;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.skill-card:hover .skill-icon {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 0 15px currentColor);
}

/* Projects Section */
.project-img {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.overlay-container .overlay-content {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 19, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.5s ease;
    backdrop-filter: blur(8px);
    transform: translateY(20px);
}

.overlay-container:hover .overlay-content {
    opacity: 1;
    transform: translateY(0);
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    font-family: 'Outfit';
    font-weight: 600;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    font-size: 0.85rem;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: 0.3s;
    color: var(--text-main);
}

.tech-badge i {
    margin-right: 6px;
    font-size: 1rem;
}

.tech-badge:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* Experience Timeline */
.timeline {
    position: relative;
    border-left: 2px dashed rgba(255, 255, 255, 0.1);
    padding-left: 30px;
    margin-left: 15px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -37px;
    top: 25px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent);
    transition: 0.3s;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent);
    transform: scale(1.2);
}

/* Forms */
.glass-input {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    border-radius: 12px;
    transition: 0.3s;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1) !important;
    outline: none;
}

.form-floating label {
    color: var(--text-muted);
    padding-left: 15px;
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--accent);
    transform: scale(.85) translateY(-.5rem) translateX(.15rem);
    background: var(--bg-main);
    padding: 0 5px;
    height: auto;
}

/* Social Icons */
.glass-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.3rem;
    margin: 0 12px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.glass-icon:hover {
    background: var(--accent);
    color: #000;
    box-shadow: var(--neon-shadow);
    transform: translateY(-8px) scale(1.1);
}

/* WhatsApp button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: 0.3s;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    border: 2px solid transparent;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    background: #128C7E;
    color: #fff;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

/* Helpers */
.hover-scale {
    transition: 0.3s;
}

.hover-scale:hover {
    transform: scale(1.05) translateX(5px);
}

.spin-slow {
    animation: spin 15s linear infinite;
}

.heart-beat {
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

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

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .section-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 0 auto;
        width: 80%;
    }

    .hero-btns .btn {
        width: 100%;
        margin: 0 !important;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .stat-card {
        text-align: center;
        justify-content: center;
        flex-direction: column;
    }

    .stat-card i {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    .timeline {
        padding-left: 20px;
        border-left-width: 1px;
    }

    .timeline-dot {
        left: -26px;
        width: 12px;
        height: 12px;
        top: 30px;
    }

    .cert-card {
        flex-direction: column;
        text-align: center;
    }

    .cert-icon {
        margin-right: 0 !important;
        margin-bottom: 20px;
    }

    .glass-nav {
        background: rgba(6, 9, 19, 0.95);
    }

    .navbar-collapse {
        padding: 15px 0;
    }
}