
/* --- CSS VARIABLES & RESET --- */
:root {
    --bg-color: #031024;
    /* Deep Navy */
    --bg-light: #112240;
    /* Lighter Navy */
    --primary-color: #00ffff;
    /* Neon Cyan */
    --secondary-color: #b902a1;
    /* Neon Magenta */
    --text-main: #ffffff;
    --text-muted: #a8b2d1;
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.4s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: hidden;
    /* Hidden initially for loader */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
}

ul {
    list-style: none;
}

/* --- LOADER STYLES --- */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(0, 255, 255, 0.2);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.loader-ring::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--secondary-color);
    animation: spin-reverse 1.5s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-family: monospace;
    color: var(--primary-color);
    letter-spacing: 3px;
    font-size: 1.2rem;
    animation: pulse 1.5s infinite;
}

.loaded {
    opacity: 0;
    visibility: hidden;
}

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

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

@keyframes spin-reverse {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* --- MAIN STYLES --- */
.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Animation Classes */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transition: all 0.8s ease-out;
    ;
}

.hidden-left {
    transform: translateX(-50px);
}

.hidden-right {
    transform: translateX(50px);
}

.hidden-bottom {
    transform: translateY(50px);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0) translateY(0);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 100px 0;
    min-height: 80vh;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    font-weight: 900;
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-left: 20px;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: inline-block;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    transition: var(--transition);
    z-index: -1;
}

.btn:hover {
    color: var(--bg-color);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(124, 10, 126, 0.4);
}

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

/* Nav */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    font-weight: 700;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Hero */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
}

.hero-name {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
}

.hero-desc {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
    margin-bottom: 30px;
}

.hero-text {
    max-width: 650px;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.about-img-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

.img-frame {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 20px;
    box-shadow: 15px 15px 0 -5px var(--bg-color), 15px 15px 0 0 var(--secondary-color);
    transition: var(--transition);
}

.img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    filter: grayscale(100%) contrast(1.2);
    transition: var(--transition);
}

.img-frame:hover {
    box-shadow: 10px 10px 0 -5px var(--bg-color), 10px 10px 0 0 var(--primary-color);
}

.img-frame:hover img {
    filter: none;
    transform: translate(-5px, -5px);
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill-tag {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--primary-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary-color);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.project-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px -15px rgba(255, 0, 255, 0.3);
}

.card-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    align-items: center;
}

.folder-icon {
    color: var(--primary-color);
    font-size: 40px;
}

.project-links a {
    margin-left: 15px;
    font-size: 22px;
    color: var(--text-muted);
}

.project-links a:hover {
    color: var(--secondary-color);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.project-tech {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
    display: flex;
    gap: 15px;
}

/* Contact & Footer */
#contact {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 60vh;
}

.contact-title {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 900;
}

.contact-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.phone-link {
    font-size: 1.2rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.phone-link:hover {
    color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-muted);
    font-family: monospace;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Social Icons Style */
.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px) scale(1.1);
    text-shadow: 0 0 15px var(--primary-color);
}

/* --- SKILLS SECTION STYLES --- */

.skill-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* horizontal centering */
    justify-content: center;
    margin-top: 10px;
    background-color: var(--bg-light);
    border-radius: 6px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.skill-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.skill-header {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.skill-header i {
    color: var(--primary-color);
    margin-right: 10px;
}

.skill-tag {
    display: inline-block;
    font-family: 'Inter', monospace;
    font-size: 0.8rem;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 5px 10px;
    margin: 0 5px 8px 0;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: default;
}

.skill-tag:hover {
    background: rgba(100, 255, 218, 0.1);
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-name {
        font-size: 3.5rem;
    }

    .hero-desc {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-img-wrapper {
        margin-bottom: 40px;
        order: -1;
    }

    .skills-list {
        justify-content: center;
    }

    .contact-buttons {
        flex-direction: column;
    }
}
