/* CSS Variables for Color Theme */
:root {
    --primary: #7B2CFF;
    --secondary: #A855F7;
    --background: #0B0B0F;
    --card-bg: #12121A;
    --glow: rgba(123, 44, 255, 0.6);
    --text-primary: #FFFFFF;
    --text-secondary: #B4B4B8;
}

/* Global Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(11, 11, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--glow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Glow Text Effect */
.glow-text {
    color: var(--primary);
    text-shadow: 0 0 20px var(--glow), 0 0 40px var(--glow);
}

/* ============================================
   PREMIUM HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
    background: var(--background);
}

/* --- Geometric Background --- */
.hero-geo-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.geo-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 44, 255, 0.22) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
    bottom: 0px;
    left: -80px;
    animation: orbFloat 10s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50%       { transform: translateY(-30px) scale(1.05); }
}

/* --- Scanline --- */
.hero-scanline {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent,
        transparent 3px,
        rgba(123, 44, 255, 0.015) 3px,
        rgba(123, 44, 255, 0.015) 4px
    );
}

/* --- Content --- */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

/* --- Badge --- */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--secondary);
    border: 1px solid rgba(168, 85, 247, 0.35);
    padding: 0.45rem 1.1rem;
    border-radius: 50px;
    background: rgba(123, 44, 255, 0.08);
    margin-bottom: 2.2rem;
    backdrop-filter: blur(4px);
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

/* --- Stacked Headline --- */
.hero-headline {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.88;
    margin-bottom: 1.8rem;
    gap: 0.05em;
}

.hero-line {
    display: block;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 9vw, 7rem);
    letter-spacing: -0.03em;
    text-transform: uppercase;
    transition: all 0.4s ease;
}

.hero-line--solid {
    color: var(--text-primary);
    text-shadow: 0 0 60px rgba(123, 44, 255, 0.2);
}

.hero-line--outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--primary);
    text-stroke: 2px var(--primary);
    filter: drop-shadow(0 0 12px rgba(123, 44, 255, 0.5));
}

.hero-line--sub {
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    font-weight: 700;
    margin-top: 0.1em;
}

.hero-headline:hover .hero-line--outline {
    -webkit-text-stroke-color: var(--secondary);
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.7));
}

/* --- Tagline --- */
.hero-tagline-new {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

/* --- CTAs --- */
.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(123, 44, 255, 0.45);
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(123, 44, 255, 0.65);
}

.cta-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 2.2rem;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 6px;
    border: 1.5px solid rgba(255,255,255,0.18);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.cta-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(123, 44, 255, 0.08);
    transform: translateY(-3px);
}

/* --- Stats Row --- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.hero-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    background: linear-gradient(135deg, #fff 30%, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.12);
}

/* --- Scroll Indicator --- */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    opacity: 0.5;
}

.hero-scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollAnim 2s ease-in-out infinite;
}

@keyframes scrollAnim {
    0%   { opacity: 1; transform: scaleY(1) translateY(0); }
    100% { opacity: 0; transform: scaleY(0.5) translateY(20px); }
}

/* keep old cta-button for any other usage */
.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--glow);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px var(--glow);
}

/* Services Section */
.services {
    padding: 100px 0;
    background-color: var(--background);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--glow);
}

.service-card > * {
    position: relative;
    z-index: 1;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.card-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.card-button:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--glow);
}

/* GPT d improvement */
.video-card {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    padding: 10px;
    transition: 0.3s;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.video-card:hover {
    transform: scale(1.02);
}

/* FIXED VIDEO DISPLAY */
.portfolio-video {
    width: 100%;
    height: auto;        /* IMPORTANT */
    max-height: none;    /* REMOVE LIMIT */
    object-fit: contain; /* SHOW FULL VIDEO */
    border-radius: 12px;
    background: black;
}

/* Optional: maintain nice spacing */
.portfolio-item {
    display: flex;
    align-items: center;
    justify-content: center;
}
.video-wrapper {
    position: relative;
    width: 100%;
}

.video-thumb {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
}

.portfolio-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    z-index: 1;
}




/* About Section */
.about {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--background) 0%, var(--card-bg) 100%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.skills, .experience {
    margin-top: 3rem;
}

.skills h3, .experience h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.skill-tag {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.skill-tag:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--glow);
}

.experience-list {
    list-style: none;
}

.experience-list li {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--background);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--card-bg);
    border: 2px solid transparent;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--glow);
}

.form-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.submit-button,
.whatsapp-button {
    flex: 1;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow);
}

.whatsapp-button {
    background: #25D366;
    color: white;
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--glow);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in[data-delay="0"] {
    transition-delay: 0s;
}

.fade-in[data-delay="1"] {
    transition-delay: 0.2s;
}

.fade-in[data-delay="2"] {
    transition-delay: 0.4s;
}

/* Portfolio Page Specific Styles */
.portfolio-header {
    padding: 120px 0 60px;
    text-align: center;
}

.portfolio-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.portfolio-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.back-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--primary);
    text-decoration: none;
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-bottom: 3rem;
}

.back-button:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px var(--glow);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 50px 0;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px var(--glow);
}

.portfolio-item-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.portfolio-item-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(123, 44, 255, 0.3), rgba(168, 85, 247, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-item-image::after {
    opacity: 1;
}

.portfolio-item-content {
    padding: 1.5rem;
}

.portfolio-item-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.portfolio-item-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials {
    padding: 50px 0;
    background: linear-gradient(180deg, var(--card-bg) 0%, var(--background) 100%);
}

.testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.testimonials-grid::-webkit-scrollbar {
    height: 8px;
}

.testimonials-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.testimonial-card {
    flex: 0 0 min(350px, 85vw);
    scroll-snap-align: center;
    background: var(--background);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(123, 44, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 44, 255, 0.1);
    border-color: var(--primary);
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.5;
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-logo {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    margin-top: 0.5rem;
    line-height: 1.8;
}

.testimonial-author h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.testimonial-author span {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(11, 11, 15, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 4vh auto;
    padding: 0;
    border: 1px solid var(--primary);
    width: 92%;
    max-width: 420px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 20px 60px var(--glow);
    overflow: hidden;
    animation: modalSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalSlideIn {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Service Banner at Top of Modal */
.modal-service-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(123, 44, 255, 0.18), rgba(168, 85, 247, 0.08));
    border-bottom: 1px solid rgba(123, 44, 255, 0.2);
}

.modal-service-icon {
    font-size: 2.2rem;
    line-height: 1;
    flex-shrink: 0;
}

.modal-service-info {
    flex: 1;
    min-width: 0;
}

.modal-service-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(123, 44, 255, 0.15);
    border: 1px solid rgba(123, 44, 255, 0.3);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    margin-bottom: 0.4rem;
}

#modalTitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.15rem 0;
    line-height: 1.3;
}

.modal-service-subtitle {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Service Description */
.modal-service-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.75;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Divider */
.modal-divider {
    height: 1px;
    background: rgba(123, 44, 255, 0.15);
    margin: 0;
}

/* Form section */
.modal-form-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem 0;
    margin: 0;
}

#serviceForm {
    padding: 0.6rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

#serviceForm .form-group {
    margin: 0;
}

/* Close button */
.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    color: var(--text-secondary);
    font-size: 26px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
    line-height: 1;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(18, 18, 26, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .form-buttons {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    /* Hero mobile overrides */
    .hero {
        padding: 100px 20px 70px;
    }

    .hero-line--outline {
        -webkit-text-stroke-width: 1.5px;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .hero-stat-num {
        font-size: 1.3rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary, .cta-ghost {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.62rem;
        padding: 0.4rem 0.9rem;
    }

    .hero-line--sub {
        letter-spacing: 0.15em;
    }

    .hero-stat-divider {
        display: none;
    }

    .hero-stats {
        gap: 1.2rem;
    }
}
