/* Navigation Layout */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.nav-container {
    max-width: 90%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

/* Responsive navigation container */
@media (max-width: 768px) {
    .nav-container {
        max-width: 95%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        max-width: 98%;
        padding: 0 10px;
    }
}

.nav-logo .logo-link {
    text-decoration: none;
    color: inherit;
}

.nav-logo .logo-image {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: invert(1) brightness(1.6);
    transition: filter 0.3s ease;
}

[data-theme="light"] .nav-logo .logo-image {
    filter: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-link {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--surface);
    color: var(--text);
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
    margin-left: 20px;
}

.nav-cta:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--on-accent);
    box-shadow: var(--glow-violet);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    position: relative;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.hamburger:hover {
    background: var(--surface);
    transform: scale(1.05);
}

.hamburger:active {
    transform: scale(0.95);
}

.bar {
    width: 28px;
    height: 3px;
    background: var(--text);
    margin: 2px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
    transform-origin: center;
}

/* Modern hamburger animation */
.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Shrink navbar on scroll */
.navbar.scrolled {
    background: var(--nav-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
}

/* Hero Layout */
.hero {
    min-height: 110vh;
    display: flex;
    align-items: center;
    position: relative;
    background:
        radial-gradient(ellipse 800px 600px at 15% 20%, rgba(168, 85, 247, 0.28), transparent 60%),
        radial-gradient(ellipse 700px 700px at 85% 80%, rgba(34, 224, 255, 0.22), transparent 60%),
        radial-gradient(ellipse 600px 500px at 60% 10%, rgba(255, 79, 216, 0.14), transparent 60%),
        var(--void);
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Fade the hero into the section below instead of cutting off on a hard edge */
.hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent, var(--bg-alt));
    pointer-events: none;
    z-index: 3;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 30%;
    left: 5%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 20%;
    animation-delay: 6s;
}

.shape-5 {
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, var(--spotlight) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, var(--spotlight) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: var(--text);
    position: relative;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* About Layout */
.about {
    background: var(--bg-alt);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-dim);
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-label);
    font-weight: 700;
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-faint);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.about-image {
    display: flex;
    justify-content: center;
}

/* Skills Layout */
.skills {
    background: var(--bg-alt);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--violet);
    box-shadow: var(--glow-violet);
}

.skill-category h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: var(--text);
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Projects Layout */
.projects {
    background: var(--bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 40px;
}

/* Contact Layout */
.contact {
    background: var(--bg-alt);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-details {
    min-width: 0;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-accent);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--glow-violet);
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text);
}

.contact-details p {
    color: var(--text-dim);
    overflow-wrap: break-word;
}

.contact-link {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
    overflow-wrap: break-word;
}

.contact-link:hover {
    color: var(--cyan);
}

/* Footer Layout */
.footer {
    background: var(--void);
    color: var(--text);
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 20px;
}
