@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600&display=swap');

:root {
    --bg-color: #181818;
    --card-bg: #1F1F1F;
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --primary-color: #ffffff;
    --secondary-color: #e0e0e0;
    --accent-color: #cccccc;
    --card-border: #333333;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

html {
    scroll-behavior: smooth;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-color);
}

.premium-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: panGlow 15s ease-in-out infinite alternate;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ffffff, transparent);
    top: -20%;
    left: 10%;
}

.glow-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #a0a0a0, transparent);
    bottom: -10%;
    right: 10%;
    animation-delay: -7s;
    animation-duration: 20s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: panGrid 30s linear infinite alternate;
    z-index: 1;
}

@keyframes panGlow {
    0% { transform: translateX(-5vw) translateY(-5vh); }
    100% { transform: translateX(15vw) translateY(10vh); }
}

@keyframes panGrid {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-50px) translateY(-50px); }
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(31, 31, 31, 0.9); /* #1F1F1F transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn svg {
    pointer-events: none;
}

/* Main Layout */
main {
    /* No max-width here — let full-width sections breathe */
}

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.15em;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.profile-container {
    position: relative;
    width: 350px;
    height: 350px;
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    position: relative;
    z-index: 2;
}

.hero-text {
    flex-grow: 1;
}

.greeting {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.name {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.25;
    margin-bottom: 1rem;
}

.role {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--bg-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--card-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* Sections Common */
section {
    padding: 100px 0;
    min-height: 80vh;
}

.section-header {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin-top: 10px;
    border-radius: 2px;
}

/* Card Component */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

/* About Me Text */
.about-me-text {
    margin-bottom: 2rem;
}

.about-me-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.highlights {
    display: flex;
    gap: 3rem;
}

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

.highlight-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.highlight-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

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

.skill-card {
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 1;
}

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

.hover-years {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 0.5rem 0.8rem;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.skill-card:hover .hover-years {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.skill-card .years {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.skill-card.animate .progress-bar-fill {
    transform: scaleX(1);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    margin-top: 4rem;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.huge-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 0;
    pointer-events: none;
    font-family: var(--font-heading);
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 0.8;
    white-space: nowrap;
}

.bg-word {
    font-size: 11vw;
    font-family: 'Arial Black', Impact, sans-serif;
    font-weight: 900;
    font-style: italic;
    color: rgba(255, 255, 255, 0.05);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.bg-word.top-word {
    animation: panRight 7s ease-in-out infinite alternate;
}

.bg-word.bottom-word {
    animation: panLeft 7s ease-in-out infinite alternate;
}

@keyframes panRight {
    0% { transform: translateX(-15%); }
    100% { transform: translateX(15%); }
}

@keyframes panLeft {
    0% { transform: translateX(15%); }
    100% { transform: translateX(-15%); }
}

.services-top-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 10;
}

.services-top-header h2 {
    font-size: 3.5rem;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
    line-height: 1.2;
}

.services-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 10;
}

.services-left {
    flex: 1;
    max-width: 550px;
}

.services-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.white-heading {
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: default;
}

.services-list li:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.4);
    transform: translateX(10px);
}

.services-list li .check {
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.services-list li:hover .check {
    text-shadow: 0 0 15px rgba(255, 255, 255, 1);
    transform: scale(1.2);
}


/* Visual Feast (Right Side) */
.services-visuals {
    position: relative;
    width: 45%;
    height: 500px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

/* White Theme for Visuals */
.services-visuals.white-theme .art-card {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 60px rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

.services-visuals.white-theme .art-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.services-visuals.white-theme .floating-diamond {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.art-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: floatCard 6s ease-in-out infinite;
}

.art-icon {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.art-spectrum {
    display: flex;
    height: 30px;
    width: 100%;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
}

.art-spectrum div {
    flex: 1;
}
.sp-red { background: #ff0000; }
.sp-orange { background: #ff8800; }
.sp-yellow { background: #ffff00; }
.sp-green { background: #00ff00; }
.sp-blue { background: #0088ff; }

.art-bottom {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.art-squares {
    display: flex;
    gap: 8px;
}
.art-squares span {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.art-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}
.al-1 {
    height: 8px;
    background: #00ff00;
    border-radius: 4px;
    animation: barFill 3s ease-in-out infinite alternate;
}
.al-2 {
    height: 8px;
    background: #ff0000;
    border-radius: 4px;
    animation: barFill 3s ease-in-out infinite alternate-reverse;
}

@keyframes barFill {
    0% { width: 10%; }
    100% { width: 100%; }
}

/* Floating Diamonds (İleri Geri Gelen) */
.floating-diamond {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.d-1 { top: 10%; left: 10%; animation: floatAround 8s ease-in-out infinite alternate; }
.d-2 { top: 20%; right: 10%; animation: floatAround 12s ease-in-out infinite alternate-reverse; }
.d-3 { bottom: 15%; left: 20%; animation: floatAround 10s ease-in-out infinite alternate; }
.d-4 { bottom: 25%; right: 15%; animation: floatAround 14s ease-in-out infinite alternate-reverse; }
.d-5 { top: 50%; left: -5%; animation: floatAround 9s ease-in-out infinite alternate; }

@keyframes floatCard {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(40px, 20px) rotate(15deg); }
}

/* Scroll Animations */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column !important;
        text-align: center;
        gap: 2rem !important;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .name {
        font-size: 3rem;
    }
    
    .profile-container {
        width: 250px !important;
        height: 250px !important;
        margin: 0 auto 1.5rem auto !important;
        display: block !important;
        position: relative !important;
    }
    
    .hero-text {
        width: 100% !important;
        display: block !important;
    }
}

/* Footer */
.site-footer {
    background: #0c0c0c;
    padding: 80px 5% 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-logo {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: 'Caveat', cursive;
    letter-spacing: 2px;
}

.brand-col {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 90%;
    margin: 0 auto;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.links-col ul {
    list-style: none;
    padding: 0;
}

.links-col ul li {
    margin-bottom: 0.8rem;
}

.links-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.links-col ul li a:hover {
    color: #ffffff;
}

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

.contact-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.contact-col p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 1.5rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-3px);
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* References Slider */
.experience-section, .services-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.references-section {
    width: 100%;
    height: 80px !important;
    max-height: 80px !important;
    min-height: 80px !important;
    box-sizing: border-box;
    padding: 0 !important;
    margin: 0 !important;
    background: #1F1F1F;
    border-top: 1px solid #181818;
    border-bottom: 1px solid #181818;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10;
}

.slider-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.slider-container::before,
.slider-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.slider-container::before {
    left: 0;
    background: linear-gradient(to right, #1F1F1F 0%, transparent 100%);
}

.slider-container::after {
    right: 0;
    background: linear-gradient(to left, #1F1F1F 0%, transparent 100%);
}

.slider-track {
    display: inline-block;
    animation: scrollRight 3s linear infinite;
}

.slider-track:hover {
    animation-play-state: paused;
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0%); }
}

.ref-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 30px;
    vertical-align: middle;
}

.ref-logo img {
    height: 35px;
    max-width: 140px;
    object-fit: contain;
    filter: brightness(0) invert(1); 
    opacity: 0.85;
    transition: all 0.3s ease;
}

.ref-logo:hover img {
    /* Reveals original colors */
    filter: none;
    opacity: 1;
    transform: scale(1.05);
}

/* Services Page Styles */
.services-page-section {
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
    border-color: #ffffff;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.category-title {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    font-weight: 500;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: #FFFFFF;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 10;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.service-card:hover::before {
    width: 100%;
}

.service-card h4 {
    font-size: 1.25rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    transition: text-shadow 0.3s ease;
}

.service-card:hover h4 {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.service-card p {
    color: #a0a0a0;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 2rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.service-card:hover p {
    color: #e0e0e0;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

.card-footer {
    border-top: 1px solid #2a2a2a;
    padding-top: 1.5rem;
    text-align: right;
}

.detail-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
}

.detail-btn:hover {
    opacity: 0.8;
}

.service-card:hover .detail-btn {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Full Page Detail View Styles */
#serviceDetailView {
    padding: 120px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
}

.detail-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.breadcrumb {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.breadcrumb a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb .bc-highlight {
    color: #ffffff;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2rem;
}

#detailTitle {
    font-size: 3rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    margin: 0;
}

.year-badge {
    background: #ffffff;
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.detail-content-box {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
}

#detailDesc {
    color: #e0e0e0;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0;
}

.detail-footer {
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.back-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    border-color: #ffffff;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.ref-logo img.trauto-img {
    height: 65px;
    max-width: none;
    margin: 0 10px;
}

.ref-logo img.detaypark-img {
    height: 55px;
    max-width: none;
    margin: 0 10px;
}

/* FAQ Section */
.faq-page-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-item[open] {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item summary {
    padding: 1.5rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Hide default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.faq-item summary::-webkit-details-marker {
    display: none; /* Hide default arrow for Safari */
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
    font-weight: 400;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: fadeIn 0.4s ease-out forwards;
}

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

/* Process Section */
.process-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.process-step {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

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

.step-number {
    position: absolute;
    top: -10px;
    right: 10px;
    font-size: 6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: rgba(255, 255, 255, 0.03);
    user-select: none;
    transition: color 0.3s ease;
    z-index: 0;
}

.process-step:hover .step-number {
    color: rgba(255, 255, 255, 0.08);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    z-index: 1;
}

.step-icon svg {
    width: 28px;
    height: 28px;
}

.process-step h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.process-step p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}


/* Live Support Widget */
.live-support-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-body);
}

.chat-toggle-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    color: var(--bg-color);
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.25);
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #00e676;
    color: #000;
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid var(--bg-color);
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 450px;
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-window.hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.chat-header {
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    position: relative;
}

.status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #00e676;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
}

.chat-header h4 {
    font-size: 1rem;
    color: #fff;
    margin: 0 0 2px 0;
    font-weight: 600;
}

.chat-header p {
    font-size: 0.8rem;
    color: #00e676;
    margin: 0;
}

.close-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-chat:hover {
    color: #fff;
}

.chat-body {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Custom Scrollbar for Chat */
.chat-body::-webkit-scrollbar {
    width: 6px;
}
.chat-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.chat-message {
    max-width: 85%;
    display: flex;
    flex-direction: column;
}

.chat-message.bot {
    align-self: flex-start;
}

.chat-message.user {
    align-self: flex-end;
}

.chat-message p {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.chat-message.bot p {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eee;
    border-bottom-left-radius: 0.3rem;
}

.chat-message.user p {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-color);
    font-weight: 500;
    border-bottom-right-radius: 0.3rem;
}

.msg-time {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 4px;
    align-self: flex-end;
}
.chat-message.bot .msg-time {
    align-self: flex-start;
}

.chat-footer {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

.chat-footer input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.6rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.chat-footer input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    border: none;
    color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.send-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 500px) {
    .chat-window {
        width: 300px;
        height: 400px;
        bottom: 75px;
    }
}

/* Form Styles for Widget */
.contact-form-widget {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form-widget .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-form-widget label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-form-widget input,
.contact-form-widget textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.contact-form-widget input:focus,
.contact-form-widget textarea:focus {
    border-color: var(--primary-color);
}

.contact-form-widget textarea {
    resize: none;
}

.contact-form-widget .submit-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--bg-color);
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form-widget .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Portfolio References Page Styles */
.references-page-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 5%;
}

.portfolio-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2.5rem;
    margin-top: 3rem;
}

.portfolio-card {
    border-radius: 1.5rem;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Custom Dark Card (Matches Image Layout with White Accents) */
.portfolio-card.custom-dark-card {
    background: #1c1c1c;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    padding: 0;
    transition: all 0.4s ease;
    width: 380px;
    height: 380px;
}

.portfolio-card.custom-dark-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.15); /* White outer glow */
    border-color: rgba(255, 255, 255, 0.2);
}

/* Top bar that fills on hover */
.top-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: #fff;
    transition: width 0.4s ease;
    z-index: 2;
}

.portfolio-card.custom-dark-card:hover .top-bar-fill {
    width: 100%;
}

.card-inner-content {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-inner-content h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.card-inner-content p {
    color: #aaa;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-action {
    display: flex;
    justify-content: center;
    margin-top: auto;
}

.glow-btn {
    background: #fff;
    color: #111;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.glow-btn:hover {
    background: #f0f0f0;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* Global Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Hide background effects on mobile */
    .background-effects {
        display: none !important;
    }

    /* Hide decorative art card & floating diamonds on mobile */
    .services-visuals {
        display: none !important;
    }

    /* Typography & Spacing */
    .section-header h2, .name, #detailTitle, .services-top-header h2 {
        font-size: 2rem !important;
    }
    .hero-section, .services-page-section, .references-page-section, section {
        padding: 100px 5% 40px !important;
    }
    
    /* Navigation */
    .glass-nav {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.2rem 1rem !important; /* Set fixed padding for mobile */
        align-items: center;
    }
    .logo {
        margin-bottom: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .nav-links {
        display: block !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-10px) !important;
        width: 100% !important;
        background: rgba(20, 20, 20, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        padding: 0 !important;
        margin: 0 !important;
        border-bottom: 1px solid transparent !important;
        box-shadow: none !important;
        box-sizing: border-box !important;
        z-index: 9999 !important;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.35s ease,
                    border-bottom 0.3s ease, box-shadow 0.3s ease !important;
    }
    .nav-links.active {
        max-height: 400px !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        padding: 0.5rem 0 !important;
        border-bottom: 1px solid var(--card-border) !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.8) !important;
    }
    .nav-links li {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        opacity: 0;
        transform: translateX(-15px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    .nav-links.active li:nth-child(1) { transition-delay: 0.05s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.25s; }
    .nav-links a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        font-size: 1.1rem !important;
        padding: 14px 0 !important;
        color: #ffffff !important;
        font-weight: 500 !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }
    .nav-links a::after {
        display: none !important;
    }

    /* Grids & Cards */
    .portfolio-card.custom-dark-card {
        width: 100%;
        max-width: 380px;
        height: auto;
        min-height: 380px;
    }
    .card-inner-content {
        padding: 1.5rem;
    }
    .portfolio-grid {
        justify-content: center;
    }
    
    .skills-grid, .process-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Services Visuals */
    .services-wrapper {
        flex-direction: column;
    }
    .services-visuals {
        width: 100%;
        height: 350px;
        margin-top: 2rem;
    }
    
    /* Slider */
    .references-section {
        height: 60px !important;
        min-height: 60px !important;
    }
    .ref-logo img {
        height: 25px;
    }
    
    /* Footer */
    .footer-logo {
        font-size: 2rem;
    }
    .footer-container {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 0.5rem;
    }
    .nav-links a {
        font-size: 0.8rem;
    }
    .hero-content {
        gap: 2rem;
    }
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        align-items: center;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .portfolio-card.custom-dark-card {
        min-height: 340px;
    }
}

