/* 
   SEMIHCAN.COM - Main Styles
   Premium, Modern, Minimal
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
    /* Theme Variables */
    --primary-color: #ff6a00;
    --primary-gradient: linear-gradient(135deg, #ff6a00, #ee0979);
    --secondary-gradient: linear-gradient(135deg, #6c63ff, #3f3d56);
    --accent-color: #000000;

    --bg-light: #ffffff;
    --bg-light-secondary: #f8f9fa;
    --text-light: #2d3436;
    --text-light-muted: #636e72;

    --bg-dark: #0f1115;
    --bg-dark-secondary: #161b22;
    --text-dark: #dfe6e9;
    --text-dark-muted: #b2bec3;

    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);

    /* Defaults (Light Mode) */
    --bg-color: var(--bg-light);
    --bg-secondary: var(--bg-light-secondary);
    --text-color: var(--text-light);
    --text-muted: var(--text-light-muted);
    --border-color: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.85);

    --font-main: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* Optional for premium feel */
    --transition-speed: 0.4s;
}

[data-theme="dark"] {
    --bg-color: var(--bg-dark);
    --bg-secondary: var(--bg-dark-secondary);
    --text-color: var(--text-dark);
    --text-muted: var(--text-dark-muted);
    --border-color: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(15, 17, 21, 0.85);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --card-hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Reset & Base */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Common Header Styles */
.page-header {
    background: var(--bg-secondary);
    text-align: center;
}

.page-header h1 {
    margin-bottom: 20px;
}

.header-desc {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* Grid & Layout Utilities */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Service Card (Home Page) */
.service-card {
    padding: 30px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-align: center;
}

.service-card .icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Section specific */
.portfolio-preview {
    background: var(--bg-secondary);
}

.centered-max-600 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mt-50 {
    margin-top: 50px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
}

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

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(var(--primary-rgb), 0.6);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-sm {
    padding: 8px 25px;
    font-size: 0.85rem;
    border-radius: 30px;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.btn-text:hover {
    border-bottom-color: var(--primary-color);
}

/* Icon Button (Theme Toggle) */
.btn-icon {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.btn-icon:hover {
    background: var(--bg-secondary);
    transform: rotate(15deg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    /* Glassmorphism */
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.3s ease;
}

header.scrolled nav {
    height: 50px;
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-color);
}

.nav-links a:not(.btn):not(.lang-toggle)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn):not(.lang-toggle):hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 106, 0, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(108, 99, 255, 0.05) 0%, transparent 20%);
    padding-top: 80px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
        /* Keep them neat */
        margin: 0 auto;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.9rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

/* Cards (Web Component Styles) */
.portfolio-card,
.blog-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-speed);
    border: 1px solid var(--border-color);
}

.portfolio-card:hover,
.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(255, 106, 0, 0.2);
}

.img-placeholder {
    width: 100%;
    height: 240px;
    background: linear-gradient(45deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 2rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.5, 0, 0, 1) forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-40px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* Floating Animation Class */
.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-delayed {
    animation: float 7s ease-in-out infinite;
    animation-delay: 1s;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

/* Mobile Header Actions (New) */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 15px;
    margin-right: 15px;
}

.mobile-menu-footer {
    display: none;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75%;
        background: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        /* items start from top */
        padding-top: 70px;
        /* Reduced header space */
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 5px 0;
        /* Minimized spacing */
    }

    .nav-links a {
        font-size: 1.3rem;
        /* Increased font size */
        font-weight: 600;
        display: block;
    }

    /* Hide Desktop Actions on Mobile */
    .desktop-only {
        display: none !important;
    }

    /* Show Mobile Header Actions */
    .mobile-header-actions {
        display: flex;
        margin-left: auto;
        margin-right: 15px;
        align-items: center;
        gap: 10px;
        /* Tighter gap */
    }

    /* Resize Mobile Header Icons */
    .mobile-header-actions .lang-toggle {
        width: 60px;
        /* Smaller width */
        height: 30px;
        /* Smaller height */
        padding: 2px;
    }

    .mobile-header-actions .lang-toggle span {
        font-size: 0.75rem;
        /* Smaller text */
    }

    .mobile-header-actions .theme-toggle-btn {
        width: 34px;
        /* Smaller button */
        height: 34px;
        font-size: 1rem;
        /* Smaller icon */
        padding: 6px;
    }

    .mobile-toggle {
        display: block;
        z-index: 1002;
    }

    /* Resize Logo on Mobile */
    .logo a {
        font-size: 1.6rem;
        /* Slightly larger logo font */
    }

    .logo i {
        font-size: 1.4rem;
        /* Slightly larger logo icon */
    }

    /* Mobile Menu Footer Styles (Minimalist) */
    .mobile-menu-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: auto;
        padding-bottom: 20px;
        width: 100%;
        gap: 10px;
        /* No border top */
        padding-top: 10px;
    }

    .btn-whatsapp {
        background-color: transparent;
        color: #25D366;
        border: 2px solid #25D366;
        padding: 12px 25px;
        border-radius: 12px;
        font-weight: 600;
        font-size: 1rem;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
        width: 80%;
        justify-content: center;
        transition: all 0.3s ease;
        margin-bottom: 5px;
        /* Reduced margin */
    }

    .btn-whatsapp:hover {
        background-color: #25D366;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
    }

    .mobile-social-icons {
        display: flex;
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
        max-width: 85%;
        padding: 10px;

        margin-bottom: 20px;
    }

    .mobile-social-icons a {
        font-size: 1.25rem;
        color: var(--text-color);
        transition: color 0.3s ease;
        background: transparent;
        /* Remove background for cleaner look */
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border-color);
        /* Subtle border */
        border-radius: 50%;
    }

    .mobile-social-icons a:hover {
        color: var(--primary-color);
        border-color: var(--primary-color);
        transform: translateY(-2px);
    }
}

/* Form Styles */
input,
textarea {
    background: var(--bg-secondary) !important;
    border: 2px solid var(--border-color) !important;
    transition: all 0.3s !important;
    font-family: var(--font-main) !important;
}

input:focus,
textarea:focus {
    border-color: var(--primary-color) !important;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.1);
}

/* Vertical Service List Layout Styles */
.services-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.service-row {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    height: 250px;
    /* Fixed height to enforce scrolling if needed */
    align-items: center;
}

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

.service-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
    height: 100%;
    min-width: 250px;
    /* Ensure space for title */
}

.service-right {
    flex: 2;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-row:hover .service-icon {
    transform: scale(1.1);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    overflow-y: auto;
    /* Enable scroll inside */
    padding-right: 10px;
    /* Space for scrollbar */
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Custom Scrollbar for Description */
.service-desc::-webkit-scrollbar {
    width: 6px;
}

.service-desc::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.service-desc::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 0.5;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .service-row {
        flex-direction: column;
        height: auto;
        padding: 25px;
        text-align: center;
    }

    .service-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 20px;
        margin-bottom: 20px;
        width: 100%;
        min-width: auto;
    }

    .service-right {
        padding-left: 0;
        width: 100%;
    }

    .service-desc {
        max-height: 200px;
        /* Cap height on mobile */
    }
}

/* ==========================================================================
   Premium Page Header
   ========================================================================== */
.page-header-premium {
    position: relative;
    padding: 180px 0 100px;
    /* Navbar height compensation */
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    /* Slightly lighter premium dark */
    overflow: hidden;
    margin-bottom: 60px;
}

/* Background Canvas */
.page-header-premium canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Behind content but above shapes if needed */
    pointer-events: none;
    opacity: 0.6;
}

/* Background Shapes */
.page-header-premium .header-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: 0;
    animation: float 10s infinite ease-in-out;
}

.page-header-premium .header-shapes .shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -100px;
    right: -50px;
    animation-delay: 0s;
}

.page-header-premium .header-shapes .shape-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary-color);
    bottom: -50px;
    left: 10%;
    animation-delay: 2s;
}

.page-header-premium .header-shapes .shape-3 {
    width: 150px;
    height: 150px;
    background: #fff;
    top: 20%;
    left: 40%;
    opacity: 0.1;
    animation-delay: 4s;
}

/* Content */
.page-header-premium .header-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7) !important;
    /* Force light color */
}

.breadcrumbs a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumbs a:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.breadcrumbs .separator {
    font-size: 0.7rem;
    opacity: 0.5;
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumbs .current {
    color: #fff !important;
    font-weight: 500;
}

/* Title */
.page-header-premium .page-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-header-premium .title-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Description */
.page-header-premium .page-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    /* Increased contrast */
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}


/* About Page Premium Styles */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.about-image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Decoration behind image */
.about-image-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.about-image-wrapper:hover::before {
    top: 10px;
    left: 10px;
    opacity: 1;
}

.about-intro-text {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 30px;
    color: var(--text-color);
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin: 60px 0;
    text-align: center;
}

.stat-item h2 {
    font-size: 3rem;
    margin-bottom: 5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

.skills-section h3 {
    margin-bottom: 30px;
    text-align: center;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.skill-tag {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: default;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

    .about-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Premium Navbar Toggles */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 20px;
}

/* Language Toggle */
.lang-toggle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80px;
    height: 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.lang-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.1);
}

.lang-toggle span {
    z-index: 2;
    flex: 1;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.lang-toggle.en-active .lang-en,
.lang-toggle.tr-active .lang-tr {
    color: #fff;
}

.lang-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: var(--primary-color);
    border-radius: 50px;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 5px rgba(108, 99, 255, 0.3);
}

.lang-toggle.en-active .lang-slider {
    transform: translateX(100%);
    left: 1px;
    /* Adjustment for gap */
}

.lang-toggle.tr-active .lang-slider {
    transform: translateX(0);
}

/* Theme Toggle */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.theme-toggle-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(15deg);
    border-color: var(--primary-color);
}

/* Icons Animation */
.theme-toggle-btn i {
    transition: all 0.3s ease;
}

/* Premium Share Widget */
.premium-share-widget {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    height: 50px;
    width: 140px;
    /* Initial width */
    overflow: hidden;
    cursor: pointer;
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.premium-share-widget:hover,
.premium-share-widget.active {
    width: 260px;
    /* Expanded width to fit icons */
    background: var(--bg-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.share-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    position: absolute;
    width: 100%;
    height: 100%;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s;
}

.premium-share-widget:hover .share-trigger,
.premium-share-widget.active .share-trigger {
    transform: translateY(-50px);
    opacity: 0;
}

.share-socials {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Compact gap */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s;
    padding: 0 10px;
}

.premium-share-widget:hover .share-socials,
.premium-share-widget.active .share-socials {
    transform: translateY(0);
    opacity: 1;
}

.share-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.share-social-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(108, 99, 255, 0.2);
}


/* Home About Section */
.home-about {
    position: relative;
    overflow: hidden;
    transition: background-color var(--transition-speed) ease;
}

.home-about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-card {
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    font-family: 'Fira Code', 'Courier New', monospace;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.code-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.code-header {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

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

.code-content {
    color: #a9b7c6;
    font-size: 0.9rem;
    line-height: 1.6;
}

.keyword {
    color: #cc7832;
}

.string {
    color: #6a8759;
}

.function {
    color: #ffc66d;
}

.variable {
    color: #9876aa;
}

.number {
    color: #6897bb;
}

.comment {
    color: #808080;
}

/* Responsive */
@media (max-width: 900px) {
    .home-about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-visual {
        height: auto;
        padding: 40px 0;
    }

    .code-card {
        transform: none;
    }
}

/* Skill Tags */
.home-skill-tag {
    background: rgba(255, 255, 255, 0.7);
    color: var(--tag-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--tag-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: var(--font-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.home-skill-tag i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.home-skill-tag:hover {
    background: var(--tag-color);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.home-skill-tag:hover i {
    transform: rotate(15deg) scale(1.2);
    color: #fff;
}

/* Add a subtle shine effect on hover */
.home-skill-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.home-skill-tag:hover::after {
    left: 100%;
    transition: 0.5s ease-in-out;
}

[data-theme='dark'] .home-skill-tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--tag-color);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme='dark'] .home-skill-tag:hover {
    background: var(--tag-color);
    color: #fff;
    border-color: var(--tag-color);
}

/* Hero Contact Button Group */
.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.btn-group-contact {
    display: inline-flex;
    align-items: stretch;
    background: var(--bg-secondary);
    border-radius: 50px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    gap: 0;
    transition: transform 0.3s ease;
    cursor: default;
    height: 50px;
    overflow: hidden;
}

.btn-group-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.btn-contact-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
    white-space: nowrap;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.btn-contact-phone,
.btn-contact-whatsapp {
    width: 60px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: none;
}

.btn-contact-phone {
    background: #3b82f6;
    /* Blue for Phone */
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-contact-phone:hover {
    background: #2563eb;
}

.btn-contact-whatsapp {
    background: #25D366;
    /* Green for WhatsApp */
}

.btn-contact-whatsapp:hover {
    background: #128c7e;
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .hero-buttons .btn {
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        font-size: 1rem;
        width: 100%;
    }

    .btn-group-contact {
        width: 100%;
        justify-content: space-between;
    }

    .btn-contact-label {
        flex-grow: 1;
    }

    /* Specific fix for Mobile Menu Footer */
    /* Specific fix for Mobile Menu Footer */
    .mobile-menu-footer {
        padding: 0 25px !important;
        /* Force side padding on container */
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .mobile-menu-footer .btn-group-contact {
        width: 100%;
        /* Fill the padded container */
        display: flex;
        margin: 15px 0 20px 0;
        /* Vertical margin only */
        height: 50px;
        overflow: hidden;
        background: var(--bg-secondary);
        align-items: stretch;
        justify-content: space-between;
        border-radius: 50px;
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .mobile-menu-footer .btn-contact-label {
        font-weight: 600;
        padding: 0 20px;
        font-size: 1rem;
        flex-grow: 1;
        text-align: left;
        display: flex;
        align-items: center;
    }

    .mobile-menu-footer .btn-contact-phone,
    .mobile-menu-footer .btn-contact-whatsapp {
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #fff !important;
        text-decoration: none !important;
        width: 60px !important;
    }

    .mobile-menu-footer .btn-contact-phone i,
    .mobile-menu-footer .btn-contact-whatsapp i {
        color: #fff !important;
        line-height: 1;
        margin: 0;
        vertical-align: middle;
    }

    /* Expand social icons area to prevent 3-line wrap */
    .mobile-menu-footer .mobile-social-icons {
        margin-left: -15px;
        margin-right: -15px;
        width: auto;
        justify-content: center;
        flex-wrap: wrap;
        /* Ensure they wrap but not aggressively */
        gap: 10px;
        /* Adjust gap if needed to fit better */
    }
}

/* Alert Messages (Admin Panel) */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}