/* ========================
   Root & Global Variables
   ======================== */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --primary-color: #667eea;
    --secondary-color: #f5576c;
    --accent-color: #00f2fe;
    
    --dark-bg: #0a0e27;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    
    --border-color: #e2e8f0;
    --border-color-dark: #cbd5e1;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.2);
    
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-out;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    background-color: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

/* Prevent horizontal scroll */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

/* Text overflow handling */
h1, h2, h3, h4, h5, h6, p, span, a {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Touch-friendly targets */
    button, a, .btn, .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
}

body.dark-mode {
    background-color: var(--dark-bg);
    color: #e2e8f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
        overflow-x: hidden;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content .container {
        overflow-x: hidden;
        padding: 0 12px;
        box-sizing: border-box;
    }
}

/* ========================
   Animated Background
   ======================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(245, 87, 108, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(0, 242, 254, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: float 8s ease-in-out infinite;
}

.sphere-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    opacity: 0.15;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    top: 60%;
    right: 5%;
    animation-delay: 2s;
    opacity: 0.15;
}

.sphere-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
    opacity: 0.15;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(40px); 
    }
}

@keyframes float-mobile {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
    }
    50% { 
        transform: translateY(15px) translateX(0px); 
    }
}

@keyframes float-mobile-small {
    0%, 100% { 
        transform: translateY(0px) translateX(0px); 
    }
    50% { 
        transform: translateY(10px) translateX(0px); 
    }
}

/* ========================
   Hero Section Dark Mode
   ======================== */
body.dark-mode .hero {
    background: linear-gradient(180deg, #0f1323 0%, #1a1f35 100%);
}

body.dark-mode .hero-title {
    color: #e2e8f0;
}

body.dark-mode .hero-subtitle {
    color: #cbd5e1;
}

body.dark-mode .hero-badge {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    color: #a5b4fc;
}

body.dark-mode .floating-card {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .card-item {
    color: #e2e8f0;
}

/* ========================
   Navigation Bar
   ======================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-fast);
}

body.dark-mode .navbar {
    background: rgba(10, 14, 39, 0.7);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .menu-toggle span {
    background: #e2e8f0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-box {
    width: 70px;
    height: 70px;
    background: transparent;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
    overflow: hidden;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    filter: drop-shadow(0 2px 8px rgba(102, 126, 234, 0.15));
    transition: var(--transition);
}

.logo:hover .logo-img {
    filter: drop-shadow(0 4px 15px rgba(102, 126, 234, 0.3));
    transform: scale(1.1);
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.8px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 70px;
    line-height: 1;
    transform: translateY(5px);
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 768px) {
    .logo-text {
        font-size: 18px;
    }

    .logo-box {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 16px;
        display: none;
    }

    .logo-box {
        width: 45px;
        height: 45px;
    }
}

.logo:hover .logo-text {
    letter-spacing: -0.3px;
}

.nav-menu {
    display: none;
    gap: 50px;
}

/* Mobile Menu Styles */
@media (max-width: 767px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 30px 20px;
        gap: 0;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    body.dark-mode .nav-menu {
        background: rgba(10, 14, 39, 0.98);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        display: flex;
    }

    .nav-menu .nav-link {
        padding: 18px 0;
        border-bottom: 1px solid rgba(226, 232, 240, 0.3);
        font-size: 16px;
        width: 100%;
        display: block;
    }

    body.dark-mode .nav-menu .nav-link {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }

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

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

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    transition: var(--transition-fast);
    letter-spacing: 0.5px;
}

body.dark-mode .nav-link {
    color: #e2e8f0;
}

body.dark-mode .logo-img {
    filter: drop-shadow(0 2px 8px rgba(245, 87, 108, 0.15));
}

body.dark-mode .logo:hover .logo-img {
    filter: drop-shadow(0 4px 15px rgba(245, 87, 108, 0.3));
}

body.dark-mode .section-badge {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
    border-color: rgba(102, 126, 234, 0.3);
}

.nav-link span {
    display: inline-block;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-link:hover span,
.nav-link.active span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-dark);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--primary-gradient);
    color: white;
    transform: rotate(20deg);
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ========================
   Hero Section
   ======================== */
.hero {
    margin-top: 70px;
    padding: 100px 0 80px;
    position: relative;
    overflow: visible;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 50px;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0 40px;
        overflow: visible;
    }
}

.hero-content .container {
    padding: 40px 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: visible;
}

.hero-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (max-width: 480px) {
    .hero-text {
        align-items: center;
        justify-content: center;
    }
}

.hero-text > * {
    max-width: 100%;
}

.hero-text .hero-badge {
    max-width: 100%;
}

@media (max-width: 768px) {
    .hero-content .container {
        padding: 20px 0;
    }
    
    .hero-text {
        padding-right: 0;
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .hero-content .container {
        padding: 15px 0;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-text {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        padding: 0;
        margin: 0 auto;
        box-sizing: border-box;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .hero-badge {
        max-width: 100%;
        width: fit-content;
        margin: 0 auto 20px auto !important;
        box-sizing: border-box;
        text-align: center;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    overflow: visible;
    position: relative;
}

@media (max-width: 768px) {
    .hero-wrapper {
        gap: 40px;
        overflow: visible;
    }
}

@media (max-width: 480px) {
    .hero-wrapper {
        gap: 30px;
        overflow: visible;
    }
}

@media (min-width: 1024px) {
    .hero-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(245, 87, 108, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    margin: 0 auto 30px auto;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    animation: slideInDown 0.8s ease-out;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: nowrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: fit-content;
    position: relative;
    text-align: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .hero-badge {
        margin: 0 auto 20px auto;
        text-align: center;
        justify-content: center;
    }
}

.badge-icon {
    font-size: 18px;
    flex-shrink: 0;
    display: inline-block;
}

.hero-badge span:not(.badge-icon) {
    white-space: nowrap;
    flex-shrink: 1;
}

@media (max-width: 768px) {
    .hero-badge {
        padding: 10px 18px;
        font-size: 13px;
        margin-bottom: 25px;
        gap: 8px;
        border-radius: 25px;
        max-width: calc(100% - 0px);
    }

    .badge-icon {
        font-size: 16px;
    }
    
    .hero-badge span:not(.badge-icon) {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        padding: 8px 10px;
        font-size: 10px;
        margin-bottom: 20px;
        gap: 4px;
        border-radius: 18px;
        max-width: calc(100% - 0px);
        display: inline-flex;
        width: auto;
        min-width: 0;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: auto;
    }

    .badge-icon {
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .hero-badge span:not(.badge-icon) {
        font-size: 10px;
        white-space: nowrap;
        overflow: visible;
        flex-shrink: 1;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .hero-badge {
        padding: 7px 12px;
        font-size: 10px;
        gap: 5px;
    }

    .badge-icon {
        font-size: 12px;
    }
    
    .hero-badge span:not(.badge-icon) {
        font-size: 10px;
    }
}

.hero-title {
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
    animation: slideInUp 0.8s ease-out 0.1s both;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title .gradient-text {
    display: block;
    margin-top: 5px;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 48px;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
}

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

.hero-subtitle {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out 0.2s both;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 18px;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.3s both;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .hero-buttons .btn {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        gap: 8px !important;
        justify-content: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .hero-buttons a.btn,
    .hero-buttons a.btn-primary,
    .hero-buttons a.btn-secondary,
    .hero-buttons .btn,
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 6px 14px !important;
        min-height: 36px !important;
        width: auto !important;
        max-width: 85% !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

.hero-image {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: visible;
    min-height: 500px;
}

@media (max-width: 768px) {
    .hero-image {
        height: 450px;
        min-height: 450px;
        margin-top: 40px;
        overflow: visible;
        position: relative;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 400px;
        min-height: 400px;
        margin-top: 30px;
        overflow: visible;
        padding: 10px;
        box-sizing: border-box;
        position: relative;
    }
}

/* ========================
   Floating Cards
   ======================== */
.floating-card {
    position: absolute;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    animation: float 4s ease-in-out infinite;
    transition: var(--transition);
    width: 160px;
    min-width: 160px;
    max-width: 160px;
    height: auto;
    min-height: 120px;
    box-sizing: border-box;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Grid Layout: 2x2
   Sol Üst: UI/UX (card-alt-2)
   Sol Alt: Kurumsal Logo (card-alt-3)
   Sağ Üst: Sosyal Medya (card-alt-1)
   Sağ Alt: Baskı Tasarımı (main-card)
*/

.main-card {
    bottom: 20%;
    right: 20%;
    animation-delay: 0s;
}

.card-alt-1 {
    top: 20%;
    right: 20%;
    animation-delay: 0s;
}

.card-alt-2 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.card-alt-3 {
    bottom: 20%;
    left: 20%;
    animation-delay: 0s;
}

/* Mobile Floating Cards */
@media (max-width: 768px) {
    .hero-image {
        height: 450px;
        min-height: 450px;
    }

    .floating-card {
        width: 110px !important;
        padding: 14px;
        position: absolute;
        animation: float-mobile 4s ease-in-out infinite;
    }

    .main-card {
        width: 110px !important;
        bottom: 10%;
        right: 5%;
    }

    .card-alt-1 {
        width: 110px !important;
        top: 10%;
        right: 5%;
    }

    .card-alt-2 {
        width: 110px !important;
        top: 10%;
        left: 5%;
    }

    .card-alt-3 {
        width: 110px !important;
        bottom: 10%;
        left: 5%;
    }

    .card-icon {
        font-size: 22px;
    }

    .card-item {
        font-size: 11px;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 400px;
        min-height: 400px;
    }

    .floating-card {
        width: 90px !important;
        padding: 10px;
        position: absolute;
        animation: float-mobile-small 4s ease-in-out infinite;
    }

    .main-card {
        width: 90px !important;
        bottom: 8%;
        right: 3%;
    }

    .card-alt-1 {
        width: 90px !important;
        top: 8%;
        right: 3%;
    }

    .card-alt-2 {
        width: 90px !important;
        top: 8%;
        left: 3%;
    }

    .card-alt-3 {
        width: 90px !important;
        bottom: 8%;
        left: 3%;
    }

    .card-icon {
        font-size: 18px;
    }

    .card-item {
        font-size: 10px;
        gap: 6px;
    }
    
    .card-item span:not(.card-icon) {
        font-size: 9px;
        line-height: 1.3;
        text-align: center;
    }
}

@media (max-width: 360px) {
    .hero-image {
        height: 380px;
        min-height: 380px;
    }

    .floating-card {
        width: 80px !important;
        padding: 8px;
        position: absolute;
        animation: float-mobile-small 4s ease-in-out infinite;
    }

    .main-card {
        width: 80px !important;
        bottom: 5%;
        right: 2%;
    }

    .card-alt-1 {
        width: 80px !important;
        top: 5%;
        right: 2%;
    }

    .card-alt-2 {
        width: 80px !important;
        top: 5%;
        left: 2%;
    }

    .card-alt-3 {
        width: 80px !important;
        bottom: 5%;
        left: 2%;
    }

    .card-icon {
        font-size: 16px;
    }

    .card-item {
        font-size: 9px;
        gap: 4px;
    }
    
    .card-item span:not(.card-icon) {
        font-size: 8px;
        line-height: 1.2;
    }
}

.card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    color: #1e293b;
    font-weight: 700;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-item span:not(.card-icon) {
    font-size: 14px;
    line-height: 1.2;
    max-width: 100%;
    word-break: break-word;
}

.main-card .card-item {
    color: #1e293b;
}

.card-icon {
    font-size: 32px;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
}

/* ========================
   Buttons
   ======================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 16px;
    text-align: center;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .hero-buttons .btn,
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 6px 14px !important;
        width: auto !important;
        max-width: 85% !important;
        min-height: 36px !important;
    }
}

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

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

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    z-index: 1;
}


.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 45px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(245, 87, 108, 0.1));
    color: var(--primary-color);
    border: 1.5px solid rgba(102, 126, 234, 0.3);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* ========================
   Section Header
   ======================== */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInDown 0.8s ease-out;
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 40px;
    }
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(245, 87, 108, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.2;
}

body.dark-mode .section-title {
    color: #e2e8f0;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 44px;
    }
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

body.dark-mode .section-subtitle {
    color: #cbd5e1;
}

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

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

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

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

/* ========================
   Portfolio Section
   ======================== */
.portfolio {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

@media (max-width: 768px) {
    .portfolio {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .portfolio {
        padding: 60px 0;
    }
}

body.dark-mode .portfolio {
    background: linear-gradient(180deg, #0f1323 0%, #1a1f35 100%);
}

body.dark-mode .filter-btn {
    background: #1a1f35;
    color: #e2e8f0;
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .filter-btn:hover,
body.dark-mode .filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

body.dark-mode .filter-count {
    color: #a5b4fc;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 70px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    letter-spacing: 0.5px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-count {
    color: var(--text-light);
    font-size: 12px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

body:not(.dark-mode) .filter-btn:hover,
body:not(.dark-mode) .filter-btn.active {
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 35px;
    width: 100%;
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.portfolio-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: scaleInAnimation 0.6s ease-out forwards;
    opacity: 0;
    position: relative;
}

.portfolio-item.premium {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .portfolio-item.premium {
        grid-column: span 1;
    }
    
    .portfolio-item.premium:first-child {
        grid-column: span 2;
        grid-row: span 2;
    }
}

@keyframes scaleInAnimation {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.portfolio-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 350px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.portfolio-item.premium .portfolio-image {
    height: 450px;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
    max-width: 100%;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.15) rotate(2deg);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(245, 87, 108, 0.95));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

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

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 800;
}

.overlay-content p {
    font-size: 15px;
    opacity: 0.95;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.project-tags span {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(245, 87, 108, 0.3);
}

/* ========================
   About Section
   ======================== */
.about {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 60px 0;
    }
}

body.dark-mode .about {
    background: linear-gradient(180deg, #0f1323 0%, #1a1f35 100%);
}

body.dark-mode .about-text {
    color: #cbd5e1;
}

body.dark-mode .skill-header,
body.dark-mode .skill-name {
    color: #e2e8f0;
}

body.dark-mode .skill-percent {
    color: #a5b4fc;
}

body.dark-mode .stat-card {
    background: rgba(102, 126, 234, 0.1);
}

body.dark-mode .stat-card .stat-number {
    color: #a5b4fc;
}

body.dark-mode .stat-card .stat-label {
    color: #cbd5e1;
}

body.dark-mode .skills-section h3 {
    color: #e2e8f0;
}

body.dark-mode .skill-bar {
    background: linear-gradient(90deg, #1a1f35, #2d3648);
}

.about-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.about-wrapper.about-full-width {
    grid-template-columns: 1fr;
}

.about-content.about-content-full {
    max-width: 100%;
}

.about-img-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    animation: scaleInAnimation 0.8s ease-out;
}

.about-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.about-image-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--primary-gradient);
    padding: 24px 32px;
    border-radius: 16px;
    color: white;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(10px);
}

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

.years {
    display: block;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 5px;
}

.label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    opacity: 0.95;
}

.about-content .section-title {
    margin-bottom: 30px;
}

.about-text {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.9;
}

.skills-section {
    margin: 50px 0;
}

.skills-section h3 {
    margin-bottom: 30px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-dark);
}

.skills-grid {
    display: grid;
    gap: 25px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 14px;
}

.skill-percent {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 14px;
}

.skill-bar {
    height: 10px;
    background: linear-gradient(90deg, #e2e8f0, #cbd5e1);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.skill-progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    animation: slideRight 1.5s ease-out;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes slideRight {
    from {
        width: 0;
    }
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--primary-gradient);
    border: none;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
    color: white;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 8px;
    color: white;
}

.stat-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================
   Services Section
   ======================== */
.services {
    padding: 120px 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

@media (max-width: 768px) {
    .services {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 60px 0;
    }
}

body.dark-mode .services {
    background: linear-gradient(180deg, #1a1f35 0%, #0f1323 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    overflow: hidden;
}

body.dark-mode .service-card {
    background: #1a1f35;
    color: #e2e8f0;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(102, 126, 234, 0.2);
}

body:not(.dark-mode) .service-card:hover {
    background: var(--primary-gradient);
    color: white;
}

.service-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(245, 87, 108, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-dark);
    transition: var(--transition);
}

.service-card:hover h3 {
    color: white;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover p {
    color: white;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-features li {
    color: var(--text-light);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: var(--transition);
}

.service-card:hover .service-features li {
    color: white;
}

.service-features i {
    color: var(--primary-color);
    font-size: 12px;
    transition: var(--transition);
}

.service-card:hover .service-features i {
    color: white;
}

/* ========================
   Stats Section
   ======================== */
.stats {
    padding: 100px 0;
    background: var(--primary-gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .stats {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .stats {
        padding: 60px 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 60px;
    text-align: center;
    width: 100%;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-content {
    animation: fadeInUp 0.8s ease-out;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 12px;
    display: block;
    color: white;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 56px;
    }
}

.stat-label {
    font-size: 15px;
    opacity: 0.95;
    font-weight: 600;
    letter-spacing: 0.5px;
    line-height: 1.5;
    color: white;
}

/* Stats section - özel renkler */
.stats .stat-number {
    color: white !important;
    -webkit-text-fill-color: white !important;
}

.stats .stat-label {
    color: white !important;
}

/* ========================
   Contact Section
   ======================== */
.contact {
    padding: 120px 0;
}

@media (max-width: 768px) {
    .contact {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .contact {
        padding: 60px 0;
    }
}

body.dark-mode .contact {
    background: linear-gradient(180deg, #1a1f35 0%, #0f1323 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    width: 100%;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    width: 100%;
}

@media (max-width: 1024px) {
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-item {
        padding: 20px;
    }

    .contact-icon-box {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .contact-details h4 {
        font-size: 16px;
    }

    .contact-details p {
        font-size: 13px;
    }

    .contact-social {
        padding: 20px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .contact-item {
        padding: 16px;
    }

    .contact-icon-box {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .contact-details h4 {
        font-size: 15px;
    }

    .contact-details p {
        font-size: 12px;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

.contact-social {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(245, 87, 108, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.6s ease-out;
    align-items: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(245, 87, 108, 0.05));
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: var(--transition);
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(245, 87, 108, 0.1));
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.contact-icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(245, 87, 108, 0.2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--primary-color);
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-item:hover .contact-icon-box {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
}

.contact-details h4 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-dark);
}

.contact-details p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 4px;
}

.contact-time {
    font-size: 13px !important;
    color: var(--text-lighter) !important;
    font-weight: 500;
}

.contact-social {
    margin-top: 20px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.contact-social h4 {
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 800;
}

.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(245, 87, 108, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 20px;
    transition: var(--transition);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.social-link:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    padding: 50px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    animation: slideInUp 0.8s ease-out;
}

body.dark-mode .contact-form {
    background: linear-gradient(135deg, #1a1f35, #0f1323);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .contact-icon-box {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
}

body.dark-mode .contact-details h4 {
    color: #e2e8f0;
}

body.dark-mode .contact-details p {
    color: #cbd5e1;
}

body.dark-mode .social-link {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
    border-color: rgba(102, 126, 234, 0.3);
}

body.dark-mode .contact-item {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .contact-item:hover {
    background: rgba(102, 126, 234, 0.15);
}

body.dark-mode .contact-social {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

body.dark-mode .service-icon-box {
    background: rgba(102, 126, 234, 0.2);
    color: #a5b4fc;
}

body.dark-mode .service-card h3 {
    color: #e2e8f0;
}

body.dark-mode .service-card p {
    color: #cbd5e1;
}

body.dark-mode .service-features li {
    color: #cbd5e1;
}

body.dark-mode .service-features i {
    color: #a5b4fc;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

body.dark-mode .form-group label {
    color: #e2e8f0;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    transition: var(--transition);
    background: white;
    color: var(--text-dark);
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea,
body.dark-mode .form-group select {
    background: #1a1f35;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    color: var(--text-dark);
}

/* ========================
   Footer
   ======================== */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0 30px;
    position: relative;
}

body.dark-mode .footer {
    background: #050809;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }

    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .footer-section p {
        font-size: 13px;
    }

    .footer-section ul li a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        gap: 30px;
        margin-bottom: 30px;
    }

    .footer-section h4 {
        font-size: 15px;
    }

    .footer-section p {
        font-size: 12px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .footer-badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 800;
}

.footer-section p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #cbd5e1;
    font-size: 14px;
}

.footer-badge {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

/* ========================
   Scroll to Top
   ======================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: var(--transition);
    touch-action: manipulation;
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
        font-size: 20px;
    }
}

.scroll-to-top:hover {
    transform: translateY(-5px);
}

/* ========================
   Responsive Design
   ======================== */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 40px;
        padding: 8px 14px !important;
        font-size: 12px !important;
        line-height: 1.4;
    }

    .btn i {
        font-size: 12px !important;
    }

    .section-title {
        font-size: 32px;
        word-wrap: break-word;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .contact-form {
        padding: 30px;
        width: 100%;
    }

    .container {
        padding: 0 15px;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
        width: 100%;
    }

    .stat-number {
        font-size: 28px;
    }

    .nav-actions {
        gap: 12px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        font-size: 16px;
    }
    
    /* Prevent text overflow */
    .hero-title, .section-title, h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
        line-height: 1.3;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0;
        margin: 0 auto 15px auto;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 13px;
        margin: 0 auto 25px auto;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        padding: 0;
        text-align: center;
    }

    .hero-buttons {
        gap: 8px;
        width: 100%;
    }

    .hero-buttons .btn,
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        padding: 6px 14px !important;
        width: auto !important;
        max-width: 85% !important;
        min-height: 36px !important;
    }

    .section-title {
        font-size: 24px;
        line-height: 1.3;
    }

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

    .contact-wrapper {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column-reverse;
        text-align: center;
        gap: 15px;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .container {
        padding: 0 12px;
    }

    .section-badge {
        font-size: 12px;
        padding: 8px 16px;
        white-space: nowrap;
    }

    .service-card {
        padding: 30px 20px;
        width: 100%;
    }

    .service-icon-box {
        width: 60px;
        height: 60px;
        min-width: 60px;
        min-height: 60px;
        font-size: 28px;
    }

    .skills-section h3 {
        font-size: 18px;
    }

    .about-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .stat-number {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }
    
    /* Ensure all text is readable */
    p, span, li, a {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* Prevent overflow */
    .btn {
        font-size: 14px;
        padding: 12px 24px;
    }
}

/* ========================
   Portfolio Modal
   ======================== */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.portfolio-modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 24px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: calc(100% - 40px);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInUp 0.4s ease-out;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .modal-content {
        width: calc(100% - 20px);
        border-radius: 16px;
        max-height: 95vh;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--light-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-gradient);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 50px;
}

@media (max-width: 768px) {
    .modal-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .modal-content {
        max-height: 95vh;
        margin: 10px;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-header p {
        font-size: 14px;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .modal-container {
        padding: 20px;
        gap: 20px;
    }

    .modal-image {
        height: 250px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-header p {
        font-size: 13px;
    }

    .detail-section h3 {
        font-size: 14px;
    }

    .tech-tags span {
        font-size: 12px;
        padding: 6px 12px;
    }

    .features-list li {
        font-size: 13px;
    }
}

.modal-image {
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

@media (max-width: 768px) {
    .modal-image {
        height: 300px;
    }
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.modal-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 12px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-section h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tags span {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(245, 87, 108, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    transition: var(--transition);
}

.tech-tags span:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
}

.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
}

.features-list i {
    color: var(--primary-color);
    font-size: 16px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-mini {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(245, 87, 108, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
}

.stat-mini:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

.stat-mini-value {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.stat-mini:hover .stat-mini-value {
    color: white;
}

.stat-mini-label {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-mini:hover .stat-mini-label {
    color: rgba(255, 255, 255, 0.8);
}

.modal-actions {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.modal-actions .btn {
    width: 100%;
    justify-content: center;
}

/* ========================
   Utility Classes
   ======================== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.no-scroll {
    overflow: hidden;
}

/* ========================
   Hero Logo Styling
   ======================== */
.hero-logo {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    opacity: 0;
    animation: slideDown 0.8s ease-out 0.2s forwards;
}

.hero-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.3));
    transition: var(--transition);
}

.hero-logo-img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 15px 40px rgba(102, 126, 234, 0.5));
}

/* ========================
   Portfolio Header Logo Styling
   ======================== */
.portfolio-header-logo {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    animation: fadeInDown 0.8s ease-out;
}

.header-logo-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 8px 25px rgba(102, 126, 234, 0.25));
    transition: var(--transition);
}

.header-logo-img:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 12px 35px rgba(102, 126, 234, 0.4));
}

/* ========================
   Dark Mode Logo Adjustments
   ======================== */
body.dark-mode .hero-logo-img,
body.dark-mode .header-logo-img {
    filter: drop-shadow(0 8px 25px rgba(245, 87, 108, 0.3));
}

body.dark-mode .hero-logo-img:hover,
body.dark-mode .header-logo-img:hover {
    filter: drop-shadow(0 12px 35px rgba(245, 87, 108, 0.5));
}

/* ========================
   Responsive Logo Adjustments
   ======================== */
@media (max-width: 768px) {
    .hero-logo {
        margin-bottom: 20px;
    }

    .hero-logo-img {
        width: 80px;
        height: 80px;
    }

    .portfolio-header-logo {
        margin: 20px 0;
    }

    .header-logo-img {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .hero-logo-img {
        width: 70px;
        height: 70px;
    }

    .header-logo-img {
        width: 60px;
        height: 60px;
    }
}