/* Modern Fun & Professional Styles */

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

:root {
    --primary-color: #FF6B9D;
    --primary-dark: #E5497D;
    --secondary-color: #4ECDC4;
    --text-light: #ffffff;
    --text-dark: #2D3748;
    --bg-dark: #0A0A0A;
    --bg-card: #1A1A1A;
    --border-color: #2A2A2A;
    --accent-color: #FFE66D;
    --purple: #A78BFA;
    --blue: #60A5FA;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(78, 205, 196, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(167, 139, 250, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Navigation */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid transparent;
    background: linear-gradient(to right, var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--purple)) border-box;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--purple)) 1;
    border-bottom: 2px solid;
    flex-wrap: wrap;
}

.nav-brand-link {
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
}

.nav-brand-link:hover {
    transform: scale(1.05);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

/* Homepage Hero Section */
.hero-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Code Animation Background */
.code-animation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    opacity: 0.5;
}

.code-line {
    position: absolute;
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    line-height: 1.7;
    white-space: pre;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    filter: blur(0.2px);
    text-shadow: 0 0 15px rgba(255, 107, 157, 0.4);
    max-width: 500px;
}

/* Grid-like positioning across the entire hero section */
.code-line-pos-1 {
    top: 2%;
    left: 1%;
}

.code-line-pos-2 {
    top: 3%;
    left: 35%;
}

.code-line-pos-3 {
    top: 5%;
    right: 2%;
    text-align: right;
}

.code-line-pos-4 {
    top: 22%;
    left: 2%;
}

.code-line-pos-5 {
    top: 20%;
    right: 1%;
    text-align: right;
}

.code-line-pos-6 {
    top: 38%;
    left: 1%;
}

.code-line-pos-7 {
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.code-line-pos-8 {
    top: 40%;
    right: 1%;
    text-align: right;
}

.code-line-pos-9 {
    top: 58%;
    left: 2%;
}

.code-line-pos-10 {
    top: 55%;
    right: 2%;
    text-align: right;
}

.code-line-pos-11 {
    bottom: 18%;
    left: 1%;
}

.code-line-pos-12 {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.code-line-pos-13 {
    bottom: 15%;
    right: 1%;
    text-align: right;
}

.code-line-pos-14 {
    bottom: 5%;
    left: 2%;
}

.code-line-pos-15 {
    bottom: 3%;
    right: 2%;
    text-align: right;
}

.code-line.active {
    opacity: 1;
}

.code-line.fade-out {
    opacity: 0;
}

/* Syntax Highlighting Colors */
.code-keyword {
    color: var(--primary-color);
    font-weight: 600;
}

.code-function {
    color: var(--secondary-color);
}

.code-string {
    color: var(--accent-color);
}

.code-variable {
    color: var(--purple);
}

.code-comment {
    color: #718096;
    font-style: italic;
}

.code-operator {
    color: var(--blue);
}

.code-number {
    color: #F687B3;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: #A0AEC0;
    margin-bottom: 2rem;
    line-height: 1.8;
}

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

.btn {
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-dark), var(--bg-dark)),
                      linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.btn-secondary:hover {
    background-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)),
                      linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.3);
}

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

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(255, 107, 157, 0.3);
    border: 3px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--purple)) border-box;
    transition: all 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 25px 70px rgba(255, 107, 157, 0.4);
}

/* Content Pages */
.content {
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* About Page */
.about-section {
    padding-bottom: 3rem;
}

.about-story {
    max-width: 800px;
    margin: 0 auto;
}

.about-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #CBD5E0;
    margin-bottom: 1.5rem;
}

.about-paragraph:first-of-type {
    font-size: 1.5rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.cta-paragraph {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

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

.resume-section {
    margin-bottom: 3rem;
}

.section-heading {
    font-size: 1.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) 1;
}

.section-content {
    font-size: 1.125rem;
    color: #A0AEC0;
    line-height: 1.8;
}

.experience-item,
.education-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-card);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-item::before,
.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(78, 205, 196, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-item:hover,
.education-item:hover {
    transform: translateX(5px);
    box-shadow: -4px 4px 20px rgba(255, 107, 157, 0.2);
}

.experience-item:hover::before,
.education-item:hover::before {
    opacity: 1;
}

.item-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.item-company {
    font-size: 1rem;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.item-date {
    font-size: 0.875rem;
    color: #A0AEC0;
    margin-bottom: 0.75rem;
}

.item-description {
    list-style-position: inside;
    color: #CBD5E0;
}

.item-description li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

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

.skill-category {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.2);
}

.skill-category-title {
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: 0.5rem 0;
    color: #CBD5E0;
    border-bottom: 1px solid var(--border-color);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* Portfolio Page */
.portfolio-section {
    padding-bottom: 3rem;
}

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

.portfolio-item {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.3);
    border-color: var(--primary-color);
}

.portfolio-item:hover::before {
    opacity: 1;
}

.portfolio-item.featured {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) 1;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.2);
}

.portfolio-title {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.portfolio-description {
    color: #A0AEC0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.portfolio-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

.portfolio-link:hover {
    color: var(--accent-color);
}

.external-icon,
.checkmark-icon {
    flex-shrink: 0;
}

/* Contact Page */
.contact-section {
    padding-bottom: 3rem;
}

.contact-intro {
    font-size: 1.125rem;
    color: #A0AEC0;
    margin-bottom: 3rem;
    text-align: center;
}

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

.contact-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(167, 139, 250, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.3);
    border-color: var(--primary-color);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.contact-method {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2;
}

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

/* Services Page */
.services-content {
    max-width: 1100px;
}

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

.services-intro {
    font-size: 1.25rem;
    color: #A0AEC0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.service-options {
    margin-bottom: 4rem;
}

.service-card {
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(78, 205, 196, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(255, 107, 157, 0.2);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured-service {
    border: 3px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--purple)) 1;
    box-shadow: 0 6px 25px rgba(255, 107, 157, 0.3);
}

.service-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.service-title {
    font-size: 1.75rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.service-price {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.price-period {
    font-size: 1.25rem;
    font-weight: 400;
    color: #A0AEC0;
}

.service-tagline {
    font-size: 1.125rem;
    color: var(--accent-color);
    font-style: italic;
}

.service-content {
    color: #CBD5E0;
}

.service-subheading {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.service-list,
.service-features {
    list-style-position: outside;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-list li,
.service-features li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.service-list.compact li,
.service-features.compact li {
    margin-bottom: 0.5rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.benefit-item {
    background-color: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
}

.benefit-item h5 {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: #A0AEC0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.payment-options {
    background-color: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-list {
    list-style-position: outside;
    margin-left: 1.5rem;
}

.payment-list li {
    margin-bottom: 0.75rem;
    color: #CBD5E0;
}

.service-timeline {
    color: var(--accent-color);
    font-size: 1.125rem;
    margin-top: 1rem;
}

.warning-box {
    background-color: rgba(237, 137, 54, 0.1);
    border: 1px solid rgba(237, 137, 54, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.consideration-list {
    list-style-position: outside;
    margin-left: 1.5rem;
}

.consideration-list li {
    margin-bottom: 0.75rem;
    color: #E8D5C4;
}

.terms-box {
    background-color: var(--bg-dark);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.terms-list {
    list-style-position: outside;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.terms-list li {
    margin-bottom: 0.5rem;
    color: #A0AEC0;
    font-size: 0.95rem;
}

.service-note {
    color: #A0AEC0;
    font-size: 0.95rem;
    font-style: italic;
    margin-top: 1rem;
}

.service-card-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.small-card {
    margin-bottom: 0;
}

.comparison-section {
    margin-bottom: 4rem;
}

.comparison-table-container {
    overflow-x: auto;
    margin-top: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.comparison-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-light);
    border-right: 1px solid var(--border-color);
}

.comparison-table th:last-child {
    border-right: none;
}

.comparison-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: #CBD5E0;
}

.comparison-table td:last-child {
    border-right: none;
}

.comparison-table tr:hover {
    background-color: rgba(109, 114, 195, 0.1);
}

.comparison-table .check-mark {
    color: var(--accent-color);
    font-weight: 600;
}

.faq-section {
    margin-bottom: 4rem;
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.05), rgba(167, 139, 250, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover {
    transform: translateX(5px);
    box-shadow: -4px 4px 20px rgba(255, 107, 157, 0.2);
}

.faq-item:hover::before {
    opacity: 1;
}

.faq-item[open] {
    border-left-color: var(--secondary-color);
}

.faq-question {
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

.faq-answer {
    color: #A0AEC0;
    line-height: 1.7;
    margin-top: 1rem;
    padding-top: 1rem;
    position: relative;
    z-index: 1;
}

.cta-section {
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(78, 205, 196, 0.1));
    padding: 3rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 3px solid;
    border-image: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--purple)) 1;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 107, 157, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.cta-title {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-text {
    font-size: 1.125rem;
    color: #A0AEC0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.disclaimer {
    text-align: center;
    font-size: 0.875rem;
    color: #718096;
    font-style: italic;
    margin-top: 2rem;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    margin-left: auto;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    /* Mobile Navigation */
    .main-nav {
        position: relative;
        padding: 1rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-brand-link {
        flex: 0 0 auto;
        order: 1;
    }

    .hamburger {
        display: flex !important;
        flex: 0 0 auto;
        order: 2;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
        border: 2px solid;
        border-top: none;
        border-image: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--purple)) 1;
        order: 3;
        width: 100%;
    }

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

    .nav-link {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.3s ease;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-link:hover {
        background-color: rgba(255, 107, 157, 0.1);
        transform: translateY(0);
        padding-left: 2rem;
    }

    .nav-link.active::after {
        display: none;
    }

    /* Hero Section */
    .hero-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    /* Code Animation - Hide on mobile for better performance */
    .code-animation-bg {
        opacity: 0.2;
    }

    .code-line {
        font-size: 0.7rem;
    }

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

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

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

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image img {
        max-width: 300px;
    }

    /* Typography */
    .page-title {
        font-size: 2rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    /* Grid Layouts */
    .portfolio-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .service-card-row {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    /* Services Page */
    .services-intro {
        font-size: 1.125rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-price {
        font-size: 2rem;
    }

    .service-list,
    .service-features,
    .payment-list,
    .consideration-list,
    .terms-list {
        margin-left: 1.25rem;
        font-size: 0.95rem;
    }

    /* Comparison Table - Stack on Mobile */
    .comparison-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        font-size: 0.8rem;
        min-width: 600px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }

    .comparison-table td:first-child {
        white-space: normal;
        min-width: 120px;
    }

    /* FAQ Items */
    .faq-item {
        padding: 1.5rem;
    }

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

    .faq-answer {
        font-size: 0.95rem;
    }

    /* Buttons */
    .about-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-cta .btn {
        width: 100%;
        max-width: 300px;
    }

    .btn {
        padding: 0.875rem 1.75rem;
    }

    /* CTA Section */
    .cta-section {
        padding: 2.5rem 1.5rem;
    }

    /* Content Spacing */
    .content {
        padding: 1.5rem 0;
    }

    .services-header {
        margin-bottom: 3rem;
    }

    .service-options,
    .comparison-section,
    .faq-section {
        margin-bottom: 3rem;
    }
}

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

    /* Navigation */
    .nav-brand {
        font-size: 1.25rem;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 0.875rem 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 2rem 0;
    }

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

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

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-image img {
        max-width: 250px;
    }

    /* Typography */
    .page-title {
        font-size: 1.75rem;
    }

    .section-heading {
        font-size: 1.25rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Services Page */
    .services-intro {
        font-size: 1rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }

    .service-title {
        font-size: 1.5rem;
    }

    .service-price {
        font-size: 1.75rem;
    }

    .service-tagline {
        font-size: 1rem;
    }

    .service-subheading {
        font-size: 1.125rem;
    }

    .service-list,
    .service-features,
    .payment-list,
    .consideration-list {
        margin-left: 1rem;
        font-size: 0.9rem;
    }

    .benefit-item {
        padding: 1.25rem;
    }

    .benefit-item h5 {
        font-size: 1rem;
    }

    .benefit-item p {
        font-size: 0.875rem;
    }

    .payment-options,
    .warning-box,
    .terms-box {
        padding: 1.25rem;
    }

    .service-note {
        font-size: 0.875rem;
    }

    /* Comparison Table */
    .comparison-table {
        font-size: 0.7rem;
        min-width: 550px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
    }

    /* FAQ Section */
    .faq-item {
        padding: 1.25rem;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-question::after {
        font-size: 1.25rem;
    }

    .faq-answer {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    /* CTA Section */
    .cta-section {
        padding: 2rem 1.25rem;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .cta-text {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* About Page */
    .about-paragraph {
        font-size: 1rem;
    }

    .about-paragraph:first-of-type {
        font-size: 1.25rem;
    }

    .cta-paragraph {
        font-size: 1.125rem;
    }

    /* Contact Cards */
    .contact-card {
        padding: 2rem;
    }

    .contact-method {
        font-size: 1.125rem;
    }

    .contact-link {
        font-size: 0.95rem;
        word-break: break-word;
    }

    /* Portfolio Items */
    .portfolio-item {
        padding: 1.5rem;
    }

    .portfolio-title {
        font-size: 1.25rem;
    }

    .portfolio-description {
        font-size: 0.95rem;
    }

    /* Disclaimer */
    .disclaimer {
        font-size: 0.8rem;
        padding: 0 0.5rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

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

    .page-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }

    .service-card {
        padding: 1.25rem 0.875rem;
    }

    .comparison-table {
        font-size: 0.65rem;
        min-width: 500px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        padding: 1.5rem 0;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-image img {
        max-width: 200px;
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }

    .nav-link:last-child {
        border-right: none;
    }
}