:root {
    --primary: #ffffff;
    --dark: #000000;
    --gradient: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.1);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--primary);
    background: var(--dark);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.brand-text {
    position: relative;
    top: 15px;
    z-index: 1;
}


.brand-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    top: 10px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 50%, rgba(255, 255, 255, 0.02) 100%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(50px, -50px) rotate(120deg); }
    66% { transform: translate(-30px, 30px) rotate(240deg); }
}

.hero-content {
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.6s ease-out;
}

.badge-icon {
    font-size: 1.2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.6s ease-out 0.2s backwards;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: slideInUp 0.6s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: slideInUp 0.6s ease-out 0.6s backwards;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--dark);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    animation: slideInUp 0.6s ease-out 0.8s backwards;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
}

/* About Section */
.about {
    background: var(--dark);
}

.about .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.about .section-header h2 {
    color: var(--primary);
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.lead {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-text p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.highlight-item {
    background: transparent;
    width: 100%;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
}

.highlight-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.highlight-item:hover .highlight-card {
    transform: rotateY(180deg);
}

.highlight-front, .highlight-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.highlight-front {
    background: var(--dark);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.highlight-back {
    background: var(--primary);
    color: var(--dark);
    transform: rotateY(180deg);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.highlight-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.highlight-item > p {
    font-size: 0.95rem;
    margin: 0;
    font-weight: 500;
}

.highlight-front p {
    color: rgba(255, 255, 255, 0.7);
}

.highlight-back p {
    color: rgba(0, 0, 0, 0.8);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Process Section */
.process {
    background: var(--primary);
    padding: 6rem 0;
}

.process .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process .section-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.process .section-header h2 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark);
}

/* Marketing Process Section */
.marketing-process {
    background: var(--dark);
    padding: 6rem 0;
}

.marketing-process .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.marketing-process .section-header h2 {
    color: var(--primary);
    font-size: 3rem;
    font-weight: 800;
}

.marketing-process .methodology-content h3 {
    color: var(--primary);
}

.marketing-process .methodology-content > p {
    color: rgba(255, 255, 255, 0.7);
}

.marketing-process .ai-methodology::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

/* Projects Section */
.projects {
    background: var(--primary);
}

.projects .section-label {
    background: rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.projects .section-header h2 {
    color: var(--dark);
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

.carousel {
    overflow: hidden;
    width: 100%;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s ease-in-out;
    gap: 1.25rem; /* tighter gap so cards are visually wider */
    padding: 0 0.625rem; /* ensure first/last cards aren't clipped */
}

.carousel-track .project-card {
    /* three per view accounting for two gaps */
    flex: 0 0 calc((100% - (2 * 1.25rem)) / 3);
    min-width: calc((100% - (2 * 1.25rem)) / 3);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--dark);
    border: 2px solid var(--dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: bold;
}

.carousel-btn:hover {
    background: var(--dark);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 0;
}

.carousel-next {
    right: 0;
}

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

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--dark);
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: var(--dark);
    opacity: 0.7;
}

.project-card {
    background: var(--dark);
    border-radius: 20px;
    padding: 1.25rem; /* shorter vertically */
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.project-card.featured {
    background: var(--dark);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-status {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.completed {
    background: var(--dark);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.project-icon {
    font-size: 2rem;
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem; /* tighter */
    color: var(--primary);
}

.project-description {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem; /* tighter */
    line-height: 1.5;
    display: -webkit-box;
    line-clamp: 5; /* clamp to 5 lines by default */
    -webkit-line-clamp: 5; /* clamp to 5 lines by default */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Expanded state removes clamping */
.project-description.expanded {
    display: block;
    -webkit-line-clamp: initial;
    line-clamp: initial;
    -webkit-box-orient: initial;
    overflow: visible;
}

/* Read more/less toggle */
.read-more-toggle {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    margin: -0.25rem 0 0.75rem 0; /* tuck closer to the paragraph */
    text-decoration: underline;
}

.read-more-toggle:hover {
    opacity: 0.85;
}

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

.tag {
    padding: 0.375rem 0.75rem;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
}

.project-details {
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-item {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.detail-item strong {
    color: var(--primary);
}

/* AI Methodology */
.ai-methodology {
    background: transparent;
    border-radius: 0;
    padding: 0;
    position: relative;
    overflow: visible;
    border: none;
}

.ai-methodology::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.methodology-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.methodology-content h3 {
    color: var(--dark);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.methodology-content > p {
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.step {
    position: relative;
    width: 100%;
    height: 240px;
    perspective: 1000px;
    cursor: pointer;
}

.step-card {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 16px;
}

.step:hover .step-card {
    transform: rotateY(180deg);
}

.step-front, .step-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.5rem;
}

.step-front {
    background: var(--dark);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-back {
    background: var(--primary);
    color: var(--dark);
    transform: rotateY(180deg);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.step-number {
    display: block;
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
    line-height: 1;
}

.step-back .step-number {
    color: var(--dark);
}

.step h4 {
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.step-back h4 {
    color: var(--dark);
}

.step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

.step-back p {
    color: rgba(0, 0, 0, 0.7);
}


/* Skills Section */
.skills {
    background: var(--dark);
}

.skills .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.skills .section-header h2 {
    color: var(--primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: fit-content;
    height: auto;
    display: flex;
    flex-direction: column;
}

.skill-category:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 2rem;
    line-height: 1;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--primary);
    font-weight: 700;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.skill-item {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--dark);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
}

.skill-item.hidden-skill {
    display: none;
}

.skill-item:hover {
    background: linear-gradient(135deg, var(--dark) 0%, rgba(0, 0, 0, 0.8) 100%);
    color: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 255, 255, 0.15);
}

.show-more-btn {
    padding: 0.5rem 1.5rem;
    background: transparent;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    align-self: flex-start;
    margin-top: auto;
}

.show-more-btn:hover {
    background: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
    transform: translateX(5px);
}

.show-more-btn.active {
    background: rgba(255, 255, 255, 0.1);
}

/* Contact Section */
.contact {
    background: var(--dark);
}

.contact .section-label {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.contact .section-header h2 {
    color: var(--primary);
}

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

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-icon {
    font-size: 1.5rem;
}

.contact-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
}

/* Contact Form Submit Button */
.contact-form .btn-primary {
    background: var(--primary);
    color: var(--dark);
    border: 2px solid var(--primary);
}

.contact-form .btn-primary:hover {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.contact-form .btn-primary:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--primary);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    /* Show mobile menu when toggled */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(0, 0, 0, 0.95);
        padding: 1rem 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: 1rem;
    }

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

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

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .carousel-container {
        padding: 0 2rem; /* tighter to make cards feel wider */
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
    }

    .carousel-track .project-card {
        flex: 0 0 calc((100% - 1.25rem) / 2);
        min-width: calc((100% - 1.25rem) / 2);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-marker {
        left: 5px;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .ai-methodology {
        padding: 2rem 1.5rem;
    }

    /* Ensure sections/cards remain visible on mobile even if JS animations fail */
    section {
        opacity: 1 !important;
        transform: none !important;
    }
    .project-card {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .carousel-container {
        padding: 0 1.5rem; /* tighter */
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-track .project-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .carousel-prev {
        left: -5px;
    }

    .carousel-next {
        right: -5px;
    }
}

/* FAQ Section */
.faq {
    padding: 6rem 0;
    background: var(--primary);
}


.faq .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq .section-header h2 {
    color: var(--dark);
}

.faq .section-header p {
    margin-top: 1rem;
    color: rgba(0, 0, 0, 0.7);
    font-size: 1.1rem;
}

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

.faq-item {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.05);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    flex: 1;
    padding-right: 1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--dark);
    transition: var(--transition);
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 2rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 2rem 1.5rem 2rem;
}

.faq-answer p {
    color: rgba(0, 0, 0, 0.8);
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 768px) {
    .faq {
        padding: 4rem 0;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.5rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--dark);
    color: var(--primary);
}
