/* =========================================================
   PROJECT: Xhulutech Portfolio
   AUTHOR: Xhulutech
   DATE: 2025
   DESCRIPTION: Modern portfolio with enhanced design
========================================================= */

/* ================= CSS VARIABLES ================= */
:root {
    --primary: #6C63FF;
    --primary-dark: #5651d9;
    --secondary: #00C9FF;
    --accent: #FF6584;
    --dark: #0D1B2A;
    --dark-light: #1B263B;
    --darker: #0A1520;
    --light: #FFFFFF;
    --gray: #E0E1DD;
    --text: #FFFFFF;
    --text-light: #B0B8C5;
    --text-dark: #415A77;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ================= BASE STYLES ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================= BUTTONS ================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-full {
    width: 100%;
}

.btn-nav {
    background: var(--primary);
    color: var(--light);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-text-link {
    color: var(--secondary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-text-link:hover {
    gap: 1rem;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo-primary {
    color: var(--light);
}

.logo-accent {
    color: var(--secondary);
}

.nav-links ul {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: var(--transition);
}

/* ================= INTRO SECTION ================= */
.intro-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    /* Only the wallpaper now, no overlay */
    background-image: url('../assets/images/hexagon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Remove the overlay */
    /* background-color: var(--dark); */
    /* background-blend-mode: overlay; */

    position: relative;
    overflow: hidden;
}

/* Remove scroll indicator */
.scroll-indicator {
    display: none;
}

.intro-container {
    display: flex;
    flex-direction: column; /* Stack content vertically */
    align-items: center;    /* Center horizontally */
    justify-content: center; /* Center vertically */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    gap: 2rem; /* space between content and visuals */
    text-align: center; /* center all text inside */
}

.intro-content {
    flex: 1;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center; /* center buttons and text */
}

.intro-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center; /* center the buttons */
}

.intro-visual {
    flex: 1;
    display: flex;
    justify-content: center; /* horizontally center */
    align-items: center;     /* vertically center */
    position: relative;
    height: 400px;
}

/* ================= SERVICES SECTION ================= */
.services-section {
    background: var(--dark-light);
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.08);
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    text-align: left;
    margin-top: 1.5rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ================= PROJECTS SECTION ================= */
.projects-section {
    background: var(--dark);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: var(--dark-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--light);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-content {
    padding: 1.5rem;
}

.project-card h3 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.tech-stack {
    margin-bottom: 1.5rem;
}

.tech-tag {
    display: inline-block;
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--secondary);
}

.project-cta:hover {
    gap: 1rem;
}

/* ================= ABOUT SECTION ================= */
.about-section {
    background: var(--dark-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.skills-section {
    margin-top: 3rem;
}

.skills-section h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.skill-category h4 {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ================= CONTACT SECTION ================= */
.contact-section {
    background: var(--dark);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-method i {
    font-size: 1.5rem;
    color: var(--secondary);
    width: 40px;
}

.contact-method h4 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-method p {
    margin: 0;
    color: var(--text-light);
}

.contact-form {
    background: var(--dark-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(0, 201, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 1rem;
    text-align: center;
}

/* ================= FOOTER ================= */
.footer {
    background: var(--darker);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-light);
    margin: 1rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-nav h4,
.footer-services h4 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

.footer-nav ul,
.footer-services ul {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-nav a,
.footer-services a {
    color: var(--text-light);
}

.footer-nav a:hover,
.footer-services a:hover {
    color: var(--secondary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--text-light);
}

.footer-bottom i {
    color: var(--accent);
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .intro-container {
        flex-direction: column;
        text-align: center;
    }

    .intro-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: var(--dark-light);
        flex-direction: column;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hamburger-menu {
        display: flex;
    }

    .hamburger-menu.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger-menu.active .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .services-grid,
    .project-gallery {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .intro-heading {
        font-size: 2.5rem;
    }

    .intro-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Center floating icons in a single row on mobile */
@media (max-width: 768px) {
    .intro-visual {
        display: flex;
        justify-content: center;  /* center horizontally */
        align-items: center;      /* center vertically */
        height: auto;
        margin-top: 2rem;
    }

    .floating-elements {
        display: flex;
        justify-content: center;  /* center icons */
        gap: 1rem;
        position: static;         /* cancel absolute */
        flex-wrap: nowrap;        /* prevent wrapping/cascading */
    }

    .floating-element {
        position: relative;  /* cancel absolute */
        top: auto;
        left: auto;
        animation: none;     /* stop floating */
    }
}
/* Desktop floating icons horizontally */
.intro-visual {
    display: flex;
    justify-content: center;  /* center horizontally */
    align-items: center;      /* center vertically */
    height: 400px;
}

.floating-elements {
    display: flex;
    justify-content: center;  /* center icons in a row */
    gap: 2rem;                /* space between icons */
    position: relative;       /* relative container */
}

.floating-element {
    position: relative;       /* remove absolute */
    top: auto;
    left: auto;
    animation: float 6s ease-in-out infinite; /* optional floating animation */
}
