/* Global Variables - Linear Dark Theme */
:root {
    --bg-color: #050505;
    --bg-secondary: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-glow: rgba(255, 255, 255, 0.1);
    --border-color: #27272a;
    --primary-gradient: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --nav-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: default;
}

/* Simple Noise Texture for Texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%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)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--nav-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.logo .dot {
    color: #666;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: rgba(255, 255, 255, 0.1);
    /* Subtle background */
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    /* Pill shape */
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #fff;
    color: #000 !important;
    /* Force black text for contrast against white bg */
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}



.large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero Section Update (Margin + Alignment) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 5% 6rem;
    /* Top padding to clear navbar */
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    max-width: 600px;
}

.available-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    /* Green for available */
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 90%;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Macbook Window Animation */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.macbook-window {
    width: 500px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    overflow: hidden;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.macbook-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mac-dot.red {
    background: #ff5f56;
}

.mac-dot.yellow {
    background: #ffbd2e;
}

.mac-dot.green {
    background: #27c93f;
}

.macbook-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #a9b7c6;
    line-height: 1.6;
}

.code-keyword {
    color: #cc7832;
}

.code-string {
    color: #6a8759;
}

.code-function {
    color: #ffc66d;
}

.code-cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #fff;
    animation: blink 1s infinite;
}

@keyframes float {

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

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

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Global Section Styles */
.section {
    padding: 3rem 5%;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: left;
}

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* About Split Layout */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
    height: 400px;
    /* Adjusted height */
    width: 350px;
    /* Fixed width for better framing */
    margin: 0 auto;
    z-index: 1;
}

.image-frame {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    z-index: -1;
    transition: transform 0.3s ease;
}

.about-image:hover .image-frame {
    transform: translate(10px, 10px);
    border-color: rgba(255, 255, 255, 0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This fixes the black bars/stretching */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

.about-image:hover .profile-img {
    filter: grayscale(0%);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.about-text .lead {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Read More Section */
.about-more-details {
    max-height: 1000px;
    opacity: 1;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
    margin-top: 1rem;
}

.about-more-details.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
}

.about-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.extra-item h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.extra-item small {
    display: block;
    margin-top: 4px;
    color: #666;
}

#read-more-btn {
    background: none;
    border: none;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

#read-more-btn:hover {
    gap: 12px;
    text-decoration: underline;
}

#read-more-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

#read-more-btn.active i {
    transform: rotate(90deg);
}

.about-stats-grid {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.astat {
    display: flex;
    flex-direction: column;
}

.astat .num {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.astat .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Timeline Experience (Center ZigZag) */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5px;
    height: 100%;
    width: 1px;
    background: var(--border-color);
}

.timeline-item {
    width: 50%;
    margin-bottom: 4rem;
    position: relative;
    transition: transform 0.3s ease;
}

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

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

.timeline-item:nth-child(odd) .timeline-marker {
    right: -24px;
    left: auto;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -5px;
    /* Adjusting for marker size to be centered */
}

/* Marker Centering Hack */
/* Marker is 10px wide. Center is at 50% of container. 
   Line is at 50%.
   Left item: Right edge is at 50%. Marker should be at -5px from right edge? No.
   Let's just align them visually.
*/
.timeline-item:nth-child(odd) .timeline-marker {
    right: -5px;
    /* On the line */
    transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -1px;
    /* On the line */
    transform: translateX(-50%);
}


.timeline-marker {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--text-primary);
    /* Solid dot */
    top: 5px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    z-index: 2;
}


.timeline-date {
    font-family: var(--font-main);
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.timeline-role {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 1rem;
    color: #a1a1aa;
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Interactive Timeline */
.timeline-item:hover .timeline-marker {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    transform: scale(1.5) translateX(var(--marker-offset));
}

.timeline-item:hover .timeline-content {
    /* No bg change for zigzag, maybe just text brightness */
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--text-secondary);
    /* Will be gradient on hover if possible */
    border-radius: 50%;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tags span {
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-tags span i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.skill-tags span:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.skill-tags span:hover i {
    transform: scale(1.2);
}

/* Tools Visual Grid */
.tools-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tool-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.tool-card i {
    font-size: 3rem;
    color: #ccc;
    transition: color 0.3s;
}

.tool-card:hover i {
    color: #fff;
}

.tool-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Standard Fade-In Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Ensure visibility by default if JS fails or for initial render */
.hero-content>*,
.macbook-window,
.section-title,
.service-card,
.about-image,
.about-text,
.timeline-item,
.skill-category,
.project-card,
.testimonial-card,
.cta-section h2 {
    opacity: 1;
    /* Reset to 1 to ensure visibility without JS */
    transform: none;
    /* Reset transform */
}



/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    padding: 1rem 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-image {
    height: 220px;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    /* Default placeholder */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Anchor image to top to show branding/logos */
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img {
    transform: scale(1.1);
}

/* Specific placeholder gradients if not inline */
.project-card:nth-child(1) .project-image {
    background: linear-gradient(135deg, #2c3e50, #bdc3c7);
    /* E-commerce silver/blue */
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0.6;
}

.project-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.project-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 20px;
    color: #aaa;
    border: 1px solid var(--border-color);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 0;
    font-weight: 500;
    transition: color 0.3s;
}

.btn-link:hover {
    color: #a1a1aa;
    /* Or accent color */
    text-decoration: underline;
}

/* Removing Bento Grid Styles - Completed */
/* The following properties were likely part of a removed Bento Grid style and were causing a syntax error. */
/* background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.02) 100%); */
/* border-top: 1px solid var(--border-color); */
/* padding: 6rem 5%; */


.cta-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 5%;
    background: #000;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info li {
    margin-bottom: 0.5rem;
}

.contact-info a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-right {
    text-align: right;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
}

/* Social Icons */
.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #fff;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.footer-socials a:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* Enhanced Contact Form */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-main);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

/* NEW ANIMATIONS */
/* Mouse Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

/* 3D Tilt Effect Base */
.tilt-card {
    transition: transform 0.1s;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item p,
.contact-item a {
    font-size: 1.2rem;
    color: #fff;
}

.social-links-list {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links-list a {
    border-bottom: 1px solid var(--border-color);
}

/* Project Detail Page */
.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.project-banner {
    width: 100%;
    height: 400px;
    background: #111;
    border-radius: 12px;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.project-main h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.project-main p {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-main ul {
    list-style: disc;
    padding-left: 20px;
    color: #ccc;
    margin-bottom: 1.5rem;
}

.project-sidebar .sidebar-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.project-sidebar h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn .bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
}

@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: #050505;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        padding-top: 100px;
        text-align: center;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary.large,
    .btn-secondary.large {
        width: 100%;
    }

    /* Macbook Scale */
    .macbook-window {
        width: 100%;
        max-width: 350px;
        /* Fit screen */
        height: auto;
    }

    /* Grids Stacking */
    .about-grid,
    .services-grid,
    .testimonials-grid,
    .contact-layout,
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        height: 250px;
    }

    /* Bento Grid Mobile */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        display: flex;
        flex-direction: column;
    }

    .bento-item {
        min-height: 200px;
    }

    .bento-item.large,
    .bento-item.medium,
    .bento-item.small {
        grid-column: span 1;
        grid-row: auto;
    }

    /* Timeline Mobile Fix (Linear Left) */
    .timeline {
        padding-left: 0;
        margin-left: 0;
    }

    .timeline::before {
        left: 20px;
        /* Line on left */
        transform: none;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 50px !important;
        /* Clear the line */
        padding-right: 0 !important;
        text-align: left !important;
        margin-bottom: 2.5rem;
    }

    .timeline-item:nth-child(odd) .timeline-marker,
    .timeline-item:nth-child(even) .timeline-marker {
        left: 15px;
        /* On the line (20px center - 5px radius) */
        right: auto;
        transform: none;
        top: 5px;
    }

    /* Footer */
    /* CTA Buttons Mobile */
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 2rem auto 0;
    }

    /* Footer Fixes */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .footer-right {
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Force Social Icons to Row */
    .footer-socials {
        flex-direction: row !important;
        gap: 1.5rem;
    }
}

/* Testimonials Redesign */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 1rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    right: 20px;
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.03);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.testimonial-card p {
    font-style: normal;
    font-size: 1.1rem;
    color: #e4e4e7;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--text-secondary);
    flex-shrink: 0;
}

.testimonial-info h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
}

.testimonial-rating {
    margin-left: auto;
    color: #fbbf24;
    font-size: 0.8rem;
    display: flex;
    gap: 2px;
}

/* CTA Section Redesign */
.cta-section {
    position: relative;
    padding: 4rem 5%;
    /* Reduced from 8rem */
    background: linear-gradient(135deg, #0f0f0f 0%, #050505 100%);
    overflow: hidden;
    margin-top: 4rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    /* Reduced size */
    height: 400px;
    /* Reduced size */
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 {
    font-size: 2.5rem;
    /* Reduced from 4rem */
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.cta-section p {
    font-size: 1rem;
    /* Reduced from 1.2rem */
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    /* Pill shape */
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.achievement-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.achievement-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: #111;
    /* Fallback */
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.05);
}

.achievement-image.placeholder-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e1e1e, #2d2d2d);
}

.achievement-image.placeholder-image i {
    font-size: 3rem;
    color: #ffd700;
    /* Gold trophy color */
}

.achievement-info {
    padding: 1.5rem;
    flex-grow: 1;
}

.achievement-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.achievement-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.achievement-info p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}

/* =========================================
   New About Page Redesign
   ========================================= */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-content-wrapper .section-title {
        text-align: center !important;
    }
}

.about-bio {
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-bio p {
    margin-bottom: 1rem;
}

/* Info Cards */
.info-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (max-width: 1024px) {
    .info-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .info-cards-grid {
        grid-template-columns: 1fr;
    }
}

.info-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.8rem;
    border-radius: 16px;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.info-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 1.8rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.info-card h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.info-card p {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* Exception for First Card (Education) */
.info-card:first-child p {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.info-card .text-muted {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.3px;
    display: block;
}

/* Stats Row */
.about-stats-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 900px) {
    .about-stats-row {
        justify-content: center;
    }
}

.stat-item-row {
    text-align: center;
}

.stat-number-large {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 0.2rem;
}

.stat-item-row p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider-vertical {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Image Wrapper with Floating Badges */
.about-image-wrapper {
    position: relative;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.profile-img-large {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    filter: grayscale(10%) contrast(1.1);
}

.image-backdrop-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    top: 0;
    left: 0;
    z-index: 1;
}

.floating-badge {
    position: absolute;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    animation: floatBadge 3s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 10%;
    left: 5%;
    animation-delay: 1.5s;
}

@keyframes floatBadge {

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

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