:root {
    --bg-color: #050505;
    --text-color: #f0f0f0;
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    height: 100vh;
}

/* Premium Noise Texturing */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    /* Base64 SVG noise pattern */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    z-index: 10;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2.5rem 4rem;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 4rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: lowercase;
    transition: color 0.4s ease;
    position: relative;
    padding-bottom: 6px;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-color);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.4s ease, left 0.4s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    padding: 0 2rem;
    will-change: transform;
    transition: transform 0.1s linear;
}

.handwritten-text {
    font-family: 'Caveat', cursive;
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 400;
    line-height: 1.25;
    color: var(--text-color);
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Text Parts */
.handwritten-text span {
    display: inline-block;
    opacity: 0;
}

/* The Strike formatting */
.strike {
    position: relative;
    color: var(--text-muted);
}

/* The actual hand-drawn style line */
.strike::after {
    content: '';
    position: absolute;
    top: 55%;
    left: -2%;
    width: 0;
    height: 4px;
    background-color: var(--text-color);
    border-radius: 4px;
    transform: translateY(-50%) rotate(-2deg);
    animation: draw-strike 0.5s cubic-bezier(0.7, 0, 0.3, 1) forwards;
    animation-delay: 1.8s;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Animations classes */
.fade-1 {
    animation: fadeIn 1s ease forwards 0.4s;
}

.fade-2 {
    animation: fadeIn 1s ease forwards 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes draw-strike {
    to {
        width: 108%;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        gap: 2rem;
    }

    .navbar {
        padding: 2rem 2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 1rem;
    }

    .about-section {
        padding: 6rem 1rem 4rem;
    }
}

/* About Section */
.about-section {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, var(--bg-color), #080808);
}

.container {
    max-width: 1200px;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* About Biography */
.about-bio {
    max-width: 800px;
    margin-bottom: 4rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-bio p {
    margin-bottom: 1.5rem;
}

.about-bio p:last-child {
    margin-bottom: 0;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
    backdrop-filter: blur(10px);
}

.skill-card img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 1rem;
    filter: grayscale(100%) opacity(0.7) brightness(1.2);
    /* Boosted brightness */
    transition: all 0.4s ease;
}

.skill-card span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    text-align: center;
    transition: color 0.3s ease;
}

/* Hover effects */
.skill-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.skill-card:hover img {
    filter: grayscale(0%) opacity(1) drop-shadow(0 0 20px rgba(255, 255, 255, 0.9));
    transform: scale(1.15);
}

.skill-card:hover span {
    color: var(--text-color);
}

/* Services Section */
.services-section {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, var(--bg-color), #080808);
}

.services-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
    margin: 2rem auto 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h3 {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.15);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    margin: 0;
    line-height: 1;
    transition: color 0.4s ease, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover h3 {
    color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.service-card p {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    z-index: 1;
    text-transform: lowercase;
}

/* Bento Box Span Classes */
.span-2x2 {
    grid-column: span 2;
    grid-row: span 2;
}

.span-2x1 {
    grid-column: span 2;
    grid-row: span 1;
}

.span-1x2 {
    grid-column: span 1;
    grid-row: span 2;
}

.span-1x1 {
    grid-column: span 1;
    grid-row: span 1;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .services-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }

    .span-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .span-2x1 {
        grid-column: span 2;
        grid-row: span 1;
    }

    .span-1x2 {
        grid-column: span 1;
        grid-row: span 1;
        /* Fallback to single row to avoid gaps */
    }

    .span-1x1 {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 600px) {
    .services-bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .service-card {
        min-height: 150px;
    }

    .span-2x2,
    .span-2x1,
    .span-1x2,
    .span-1x1 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .projects-grid,
    .experience-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
        margin: 2rem 0 0 0;
        gap: 1.5rem;
    }

    .project-card,
    .service-card {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Projects Section */
.projects-section {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(to bottom, var(--bg-color), #080808);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-top: 4rem;
    box-sizing: border-box;
}

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.project-content h3 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.project-tag {
    display: inline-block;
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Experience & Extras Section */
.experience-section {
    padding: 8rem 2rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, var(--bg-color), #080808);
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    width: 100%;
    margin-top: 4rem;
}

.experience-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.column-title {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 400;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.experience-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-list li {
    background: rgba(255, 255, 255, 0.01);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.experience-list li:hover {
    border-left-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 2rem;
}

.experience-list h4 {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.experience-list p {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Location Section (Footer) */
.location-section {
    position: relative;
    width: 100%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 6rem 0;
    margin-top: 4rem;
}

.location-bg-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.location-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.location-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0;
}

.location-map-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-details h3 {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    margin: 0;
}

.location-details p {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    letter-spacing: 1px;
}

.location-radar {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-dot {
    width: 12px;
    height: 12px;
    background-color: #34d399;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.radar-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(52, 211, 153, 0.6);
    border-radius: 50%;
    z-index: 1;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}


/* Responsive adjustments */
@media (max-width: 900px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}