/* ============================================================
   VARIABLE DEFINITIONS (:root)
   ============================================================ */
:root {
    /* Main Theme Colors */
    --primary-color: #01423f;
    --secondary-color: rgb(0, 44, 41);
    --bg-dark: #0a0a0c;
    --black: #000;
    --white: #fff;

    /* Text Colors */
    --text-primary: #fff;
    --text-secondary: #000;
    --text-muted: rgba(255, 255, 255, 0.863);

    /* Accent & Effects */
    --accent-color: #01423f;
    --accent-glow: #01423f;
    --accent-blue: #01423f;
    --shadow-accent: rgb(57, 75, 75);
    --gradient-accent: linear-gradient(90deg, #ffffff, #01423f);
    --gradient-accent2: radial-gradient(circle, #ffffff, #01423f);
    --cursor-color: #84a3a2;

    /* Glassmorphism & Cards */
    --card-bg-light: #fff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-hover-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-thin: rgba(255, 255, 255, 0.05);
    --progress-bg: rgba(255, 255, 255, 0.1);

    /* Shadows */
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --shadow-project: rgba(0, 0, 0, 0.557);
    --shadow-soft: rgba(0, 0, 0, 0.479);
    --shadow-card-white: rgba(255, 255, 255, 0.663);
    --shadow-glow-soft: #024100;
    --shadow-glow-icon: #024100;
    --shadow-glow-strong: #024100;
    --shadow-glow-bullet: #024100;

    /* UI Components */
    --bullet-inactive: rgba(255, 255, 255, 0.3);
    --scrollbar-thumb: #000;
    --scrollbar-thumb-hover: #414141;
    --scrollbar-track: #f1f1f1;
}

/* ============================================================
   GLOBAL STYLES & RESET
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    cursor: none;
    user-select: none;
}

section {
    padding: 100px 10%;
}

hr {
    width: 150px;
    height: 3px;
    background-color: var(--primary-color);
    border: none;
    margin: auto;
    margin-top: -32px;
    margin-bottom: 20px;
}

.title {
    display: flex;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 40px;
    cursor: default;
    text-shadow: 0 0 10px var(--shadow-accent);
}

/* ============================================================
   UTILITIES & ANIMATIONS
   ============================================================ */
/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rotateGear {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes floatIcon {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes dots {

    0%,
    20% {
        content: ".";
    }

    40% {
        content: "..";
    }

    60% {
        content: "...";
    }

    90%,
    100% {
        content: "";
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(1, 66, 63, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(1, 66, 63, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(1, 66, 63, 0);
    }
}

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

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 6px;
}

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

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

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 20001;
    transition: transform 0.1s ease;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 20000;
    transition: transform 0.15s ease, background 0.3s ease, width 0.3s ease, height 0.3s ease;
}

.cursor-active {
    transform: scale(2);
    background-color: rgba(1, 66, 63, 0.1);
    border-color: var(--white);
}

/* Page Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-gear {
    font-size: 5em;
    color: var(--white);
    margin-bottom: 20px;
    animation: rotateGear 2s linear infinite;
    text-shadow: 0 0 30px var(--accent-color);
}

#loader h2 {
    color: var(--white);
    font-size: 1.5em;
    letter-spacing: 5px;
    text-transform: uppercase;
}

#loader h2 span {
    animation: dots 1.5s steps(4, end) infinite;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
header {
    background-color: var(--primary-color);
    width: 100%;
    position: fixed;
    z-index: 999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    transition: 0.3s ease;
}

.logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-gear {
    position: absolute;
    font-size: 3.5em;
    color: var(--white);
    opacity: 0.25;
    z-index: -1;
    animation: rotateGear 10s linear infinite;
    pointer-events: none;
    filter: blur(1px);
}

.logo {
    text-decoration: none;
    color: var(--white);
    text-transform: uppercase;
    font-weight: 1000;
    font-size: 1.9em;
    letter-spacing: 1px;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--gradient-accent2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.logo:hover {
    letter-spacing: 3px;
    transform: scale(1.2);
    text-shadow: 0 0 50px var(--white);
}

.logo span {
    color: var(--gradient-accent2);
    -webkit-text-fill-color: var(--white);
    transition: 0.5s ease;
    opacity: 0.5;
}

.logo:hover span {
    color: var(--accent-color);
    -webkit-text-fill-color: var(--accent-color);
    text-shadow: 0 0 15px var(--accent-color);
}

.menu-btn {
    display: none;
    color: var(--text-secondary);
    font-size: 1.5em;
    cursor: pointer;
}

.navigation a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .9em;
    font-weight: 700;
    margin-left: 10px;
    text-transform: uppercase;
    display: inline-block;
    position: relative; /* Added for underline effect */
    
    /* Magnetic Variables */
    --mag-x: 0px;
    --mag-y: 0px;
    --mag-scale: 1;
    transform: translate(var(--mag-x), var(--mag-y)) scale(var(--mag-scale));
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), color 0.3s ease;
}

.navigation a i {
    margin-right: 5px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Hover Underline Effect */
.navigation a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--white);
}

.navigation a:hover::after {
    width: 60%;
}

.scroll-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--white);
    box-shadow: 0 0 10px var(--white);
    transition: width 0.1s ease-out;
}

.navigation a:hover {
    color: var(--text-muted);
    text-shadow: 0 0 15px var(--white);
    --mag-scale: 1.3;
}

.nav-active {
    color: var(--white) !important;
    text-shadow: 0 0 15px var(--white);
    --mag-scale: 1.2 !important;
    font-weight: 800 !important;
}

.close-nav {
    display: none;
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 2em;
    color: var(--white);
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.menu-socials {
    display: none; /* Hidden by default (desktop) */
}

.close-nav:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: url(images/background1.jpg) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.main>div {
    position: relative;
    z-index: 1;
}

.main h2 {
    display: inline-block;
    color: var(--text-primary);
    font-size: 1.6em;
    font-weight: 500;
    text-shadow: 5px 5px 10px var(--shadow-accent);
}

.main h2 span {
    display: inline-block;
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 3.5em;
    font-weight: 700;
    line-height: 1.2;
}

.main h3 {
    color: var(--text-primary);
    font-size: 2em;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 15px;
    text-shadow: 5px 5px 10px var(--shadow-accent);
}

.social-icons a {
    color: var(--text-primary);
    font-size: 2.5em;
    margin-right: 20px;
    text-shadow: 5px 5px 10px var(--shadow-accent);
}

.social-icons a:hover {
    transform: translateY(-15px) scale(1.05) !important;
    transition: 0.6s ease;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--accent-color);
}

/* ============================================================
   INFO SECTION (TECHNICAL GRID)
   ============================================================ */
#info {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(1, 66, 63, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(1, 66, 63, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
    padding: 100px 10%;
}

#info p {
    font-size: 1.25em;
    cursor: default;
    text-align: center;
    font-weight: 500;
    line-height: 1.8;
    color: var(--white);
    max-width: 900px;
    margin: 0 auto;
}

#info i {
    opacity: 0.9;
}

/* ============================================================
   JOURNEY SECTION (EXPERIENCE TIMELINE)
   ============================================================ */
.experience {
    background-color: var(--white);
    padding-bottom: 100px;
    position: relative;
}

.experience .title {
    color: var(--primary-color);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--primary-color), transparent);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(1, 66, 63, 0.2);
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.experience .timeline-date {
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.experience .timeline-content {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
    padding: 30px !important;
    transition: 0.4s ease;
}

.experience .timeline-content h3,
.experience .timeline-content p {
    color: var(--black) !important;
}

.experience .timeline-item:hover .timeline-content {
    border-color: var(--primary-color) !important;
    transform: translateY(-5px) scale(1.02);
}

.timeline-dot.pulse {
    animation: pulseGlow 2s infinite;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.cards {
    background-color: var(--black);
}

.content {
    display: flex;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;
}

.subinfo h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    text-align: center;
    font-weight: 700;
    margin-bottom: 10px;
}

.subinfo p {
    font-size: 1.2em;
    text-align: center;
    font-weight: 500;
    line-height: 1.6;
}

.card {
    background-color: var(--card-bg-light);
    width: 320px;
    box-shadow: 0 5px 25px var(--shadow-card-white);
    border-radius: 15px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.glass-card {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border) !important;
    box-shadow: 0 10px 30px var(--shadow-dark) !important;
}

.glass-card h3,
.glass-card a,
.glass-card p {
    color: var(--white) !important;
}

.glass-card:hover {
    background: var(--glass-hover-bg) !important;
    border-color: var(--accent-color) !important;
    box-shadow: 0 15px 40px var(--accent-color) !important;
}

.card:hover {
    transform: translateY(-15px) scale(1.05) !important;
    box-shadow: 0 15px 35px var(--shadow-dark), 0 0 15px var(--accent-blue);
}

.card .icon {
    color: var(--primary-color);
    font-size: 5em;
    text-align: center;
    transition: all 0.4s ease;
    margin-bottom: 15px;
}

.card:hover .icon {
    transform: rotate(10deg) scale(1.1);
    color: var(--accent-blue);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects {
    background-color: var(--white);
}

/* Project Filter */
.project-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: var(--glass-bg);
    border: 1px solid var(--black);
    color: var(--black);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.filter-btn:hover {
    background: var(--glass-hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    color: var(--white);
}

.project-card {
    background-color: var(--white);
    box-shadow: 0 5px 10px var(--shadow-project);
    width: 350px;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.05) !important;
    box-shadow: 0 15px 35px var(--shadow-dark), 0 0 15px var(--accent-blue);
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    padding: 20px;
}

.project-category {
    font-size: 0.9em;
    color: var(--black);
    opacity: 0.7;
}

.project-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    font-weight: 800;
    margin-top: 10px;
    font-size: 1.15em;
}

.more-details {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 0.9em;
    cursor: pointer;
}

/* Project Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.modal-content {
    background: var(--bg-dark);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 25px;
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 10001;
    overflow-y: auto;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    opacity: 0;
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2.5em;
    color: var(--white);
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-body h2 {
    color: var(--accent-color);
    font-size: 2.2em;
    margin-bottom: 15px;
}

.short-desc,
#modal-goal {
    color: var(--white);
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.modal-section {
    margin-bottom: 25px;
}

.modal-section h4 {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.tech-stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85em;
    transition: 0.3s;
}

.tech-tag:hover {
    border-color: var(--accent-color);
    background: var(--accent-color);
}

#modal-features {
    list-style: none;
    padding-left: 0;
}

#modal-features li {
    color: var(--white);
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

#modal-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.modal-footer {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.modal-btn {
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.demo-btn {
    background: var(--accent-color);
    color: var(--white);
}

.github-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.modal-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.placeholder-img {
    height: 200px;
    background: var(--glass-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6em;
    color: var(--accent-color);
}

/* ============================================================
   TECHNICAL SKILLS (ABILITIES)
   ============================================================ */
.abilities {
    background-color: var(--bg-dark);
}

.skills-container {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border-thin);
    border-radius: 30px;
    padding: 60px 5%;
    margin-top: 40px;
    position: relative;
    box-shadow: 0 25px 50px var(--shadow-dark);
}

.skill-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
    color: var(--white);
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.01) !important;
    background: var(--glass-hover-bg);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px var(--accent-blue);
}

.skill-icon {
    font-size: 4em;
    color: var(--white);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px var(--accent-color));
    transition: all 0.4s ease;
}

.skill-card:hover .skill-icon {
    color: var(--accent-blue);
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 0 15px var(--accent-blue));
}

.percentage {
    display: block;
    color: var(--white);
    font-weight: 900;
    margin-bottom: 8px;
    font-size: 1.5em;
}

.progress-bar-wrap {
    background: var(--progress-bg);
    height: 6px;
    border-radius: 10px;
    width: 100%;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--accent-color);
}

.skills-slider {
    padding: 30px 15px 70px 15px !important;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--accent-color) !important;
    opacity: 0.3;
    transition: 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    opacity: 1;
    transform: scale(1.2);
}

.swiper-pagination-bullet {
    background: var(--bullet-inactive) !important;
    width: 10px;
    height: 10px;
    margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
    background: var(--accent-color) !important;
    box-shadow: 0 0 10px var(--accent-color);
    width: 25px;
    border-radius: 5px;
}

/* ============================================================
   SOFT SKILLS (ORBIT)
   ============================================================ */
.soft-skills {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    background: var(--white);
    overflow: hidden;
}

.circle-container {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center {
    position: absolute;
    width: 160px;
    height: 160px;
    background-color: var(--secondary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 10;
    font-size: 1.6em;
}

.item {
    position: absolute;
    width: 110px;
    height: 110px;
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 0 15px var(--shadow-soft);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.85em;
    padding: 10px;
    transform: rotate(calc(45deg * var(--i))) translate(185px) rotate(calc(-45deg * var(--i)));
    transition: 0.3s;
}

.item:hover {
    background-color: var(--secondary-color);
    transform: rotate(calc(45deg * var(--i))) translate(200px) rotate(calc(-45deg * var(--i))) scale(1.1);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-cards {
    background-color: var(--black);
}

.contact-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
    position: relative;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-container::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    filter: blur(150px);
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    z-index: 1;
}

.contact-info .card {
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
    padding: 20px 25px;
}

.contact-info .card .icon {
    font-size: 2.5em;
    margin-bottom: 0;
    margin-right: 20px;
}

.contact-info .card .info h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
}

.contact-info .info a {
    font-size: 0.95em;
    color: var(--black);
    text-decoration: underline;
    transition: 0.3s ease;
}

.contact-info .info a:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.social-connect {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
}

.social-connect h3 {
    color: var(--white);
    font-size: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.contact-container .contact-info .info a {
    cursor: pointer;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-links a {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--accent-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 50px 40px;
    border-radius: 20px;
    z-index: 1;
}

.input-container {
    position: relative;
    margin-bottom: 30px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 2px solid var(--glass-border);
    color: var(--white);
    font-size: 1em;
    outline: none;
    transition: 0.3s ease;
}

.contact-form label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: 0.3s ease;
}

.contact-form input:focus~label,
.contact-form input:valid~label,
.contact-form textarea:focus~label,
.contact-form textarea:valid~label {
    top: -20px;
    left: 0;
    font-size: 0.85em;
    color: var(--accent-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-bottom-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.07);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: 0.4s;
    cursor: pointer;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--accent-color);
}

.submit-btn:hover i {
    transform: translateX(5px) translateY(-5px);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 15px 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-title {
    font-size: 1.1em;
    font-weight: 350;
}

.footer-title span {
    font-size: 1.35em;
    color: var(--black);
    text-transform: uppercase;
    font-weight: 700;
}

.social-icons- a {
    color: var(--black);
    font-size: 1.8em;
    margin-left: 10px;
    transition: 0.3s;
}

.social-icons- a:hover {
    color: var(--white);
    transform: translateY(-15px) scale(1.3);
}

#back-to-top {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 20px;
    border-radius: 10px;
}

/* ============================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ============================================================ */
@media (max-width: 1100px) {
    header {
        padding: 15px 5%;
    }

    section {
        padding: 80px 5%;
    }
}

@media (max-width: 1024px) {

    .cursor,
    .cursor-follower {
        display: none;
    }
}

@media (max-width: 900px) {
    .menu-btn {
        display: block;
    }

    .navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(1, 66, 63, 0.8); /* Glass effect */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.3);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }

    .navigation.active {
        right: 0;
    }

    .close-nav {
        display: block;
        opacity: 0;
        transform: rotate(-90deg);
        transition: 0.5s ease 0.4s;
    }

    .navigation.active .close-nav {
        opacity: 1;
        transform: rotate(0deg);
    }

    .navigation a {
        margin: 15px 0;
        font-size: 1.4em;
        width: 100%;
        text-align: center;
        color: var(--white) !important;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .navigation.active a {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered link animations */
    .navigation.active a:nth-child(2) { transition-delay: 0.1s; }
    .navigation.active a:nth-child(3) { transition-delay: 0.15s; }
    .navigation.active a:nth-child(4) { transition-delay: 0.2s; }
    .navigation.active a:nth-child(5) { transition-delay: 0.25s; }
    .navigation.active a:nth-child(6) { transition-delay: 0.3s; }
    .navigation.active a:nth-child(7) { transition-delay: 0.35s; }
    .navigation.active a:nth-child(8) { transition-delay: 0.4s; }

    .menu-socials {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-top: 40px;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 80%;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease 0.5s;
    }

    .navigation.active .menu-socials {
        opacity: 1;
        transform: translateY(0);
    }

    .menu-socials a {
        color: var(--white);
        font-size: 1.5em;
        opacity: 0.7;
        transition: 0.3s;
        width: auto; /* Reset width for icons */
        margin: 0;
        transform: none; /* No cascade here */
    }

    .menu-socials a:hover {
        opacity: 1;
        color: var(--accent-color);
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 5px;
    }

    .main {
        background-position: 85% center;
        background-attachment: scroll;
    }

    .main h2 span {
        font-size: 2.2em;
    }

    .circle-container {
        width: 350px;
        height: 350px;
    }

    .center {
        width: 110px;
        height: 110px;
        font-size: 1.1em;
    }

    .item {
        width: 90px;
        height: 90px;
        font-size: 0.75em;
        transform: rotate(calc(45deg * var(--i))) translate(140px) rotate(calc(-45deg * var(--i)));
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-body h2 {
        font-size: 1.8em;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        padding-right: 20px;
        text-align: left !important;
    }

    .timeline-dot {
        left: 22px !important;
    }
}

@media (max-width: 480px) {
    .main h2 span {
        font-size: 1.8em;
    }

    .title {
        font-size: 2em;
    }

    .project-card,
    .card {
        width: 100%;
    }

    .circle-container {
        width: 280px;
        height: 280px;
    }

    .center {
        width: 90px;
        height: 90px;
        font-size: 0.9em;
    }

    .item {
        width: 70px;
        height: 70px;
        font-size: 0.65em;
        transform: rotate(calc(45deg * var(--i))) translate(110px) rotate(calc(-45deg * var(--i)));
    }

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