/* 
=====================================================
Template Name: Doğukan Keleş - Personal Portfolio
Author: Doğukan Keleş
Description: Professional, modern and clean portfolio
===================================================== 
*/

/* Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables */
:root {
    --primary-navy: #071426;
    --secondary-navy: #0B1C35;
    --accent-blue: #435BFF;
    --light-blue: #697BFF;
    --white: #FFFFFF;
    --light-bg: #F7F8FC;
    --primary-text: #121826;
    --secondary-text: #667085;
    --border-color: #E4E7EC;
    
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
    --box-shadow: 0 12px 30px rgba(7, 20, 38, 0.08);
    --box-shadow-hover: 0 20px 40px rgba(7, 20, 38, 0.12);
    --border-radius: 16px;
    --border-radius-sm: 8px;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--light-blue);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-text);
}

.section-subtitle {
    font-size: 16px;
    color: var(--secondary-text);
    margin-bottom: 50px;
}

/* Buttons */
.btn-custom {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
}

.btn-primary-custom {
    background-color: var(--accent-blue);
    color: var(--white);
    border: 2px solid var(--accent-blue);
}

.btn-primary-custom:hover {
    background-color: var(--light-blue);
    border-color: var(--light-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 91, 255, 0.3);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-custom:hover {
    background-color: var(--white);
    color: var(--primary-navy);
    transform: translateY(-3px);
}

/* Header & Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(7, 20, 38, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    color: var(--white) !important;
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 15px;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--white) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent-blue);
    transition: var(--transition);
    transform: translateX(-50%);
}

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

/* Hero Section */
.hero {
    background-color: var(--primary-navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7,20,38,1) 0%, rgba(11,28,53,0.8) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    color: var(--white);
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
}

.hero-title {
    color: var(--white);
    font-size: 58px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    color: var(--accent-blue);
}

.hero-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    max-width: 550px;
    margin-bottom: 40px;
}

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

.hero-img-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    margin: 0 auto;
}

.hero-img-wrapper img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: top;
}

.hero-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 20, 38, 0.8), transparent);
}

/* Stats Section */
.stats-wrapper {
    background-color: var(--secondary-navy);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(67, 91, 255, 0.1);
    color: var(--accent-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info h3 {
    color: var(--white);
    font-size: 24px;
    margin-bottom: 0;
    line-height: 1.2;
}

.stat-info p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
    font-size: 14px;
}

/* Services Section */
.services-section {
    background-color: var(--white);
}

.service-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    transition: var(--transition);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
    border-color: transparent;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(67, 91, 255, 0.05);
    color: var(--accent-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--accent-blue);
    color: var(--white);
}

.service-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--secondary-text);
    margin-bottom: 0;
    font-size: 15px;
}

/* Projects Section */
.projects-section {
    background-color: var(--light-bg);
}

.portfolio-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    color: var(--secondary-text);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-blue);
    color: var(--white);
    border-color: var(--accent-blue);
}

.project-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.project-img {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--white);
    color: var(--accent-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.project-content {
    padding: 25px;
}

.project-content h4 {
    font-size: 19px;
    margin-bottom: 10px;
}

.project-tech {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.project-link i {
    transition: var(--transition);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* About & Process Section */
.about-process-section {
    background-color: var(--white);
}

.about-img-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    padding: 15px;
    background-color: var(--white);
    box-shadow: var(--box-shadow);
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100px;
    height: 100px;
    border-top: 4px solid var(--accent-blue);
    border-left: 4px solid var(--accent-blue);
    border-radius: 20px 0 0 0;
}

.about-img-wrapper img {
    border-radius: var(--border-radius-sm);
    width: 100%;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.tech-badge {
    background-color: var(--light-bg);
    color: var(--primary-navy);
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

.process-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.process-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    width: 2px;
    height: calc(100% - 20px);
    background-color: var(--border-color);
}

.process-number {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.process-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    margin-top: 10px;
}

.process-content p {
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-wrapper {
    background: linear-gradient(135deg, var(--accent-blue) 0%, #8A2BE2 100%);
    border-radius: 24px;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.cta-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 36px;
    margin-bottom: 25px;
}

.cta-title {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--primary-navy);
    color: var(--white);
    padding-top: 80px;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    display: inline-block;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-blue);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 25px;
    font-weight: 600;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact i {
    color: var(--accent-blue);
    margin-top: 5px;
}

.newsletter-form .input-group {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form input {
    background-color: transparent;
    border: none;
    color: var(--white);
    padding: 12px 15px;
}

.newsletter-form input:focus {
    background-color: transparent;
    color: var(--white);
    box-shadow: none;
}

.newsletter-form button {
    background-color: var(--accent-blue);
    color: var(--white);
    border: none;
    padding: 0 20px;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--light-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
    margin-top: 50px;
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.back-to-top {
    width: 40px;
    height: 40px;
    background-color: var(--accent-blue);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.back-to-top:hover {
    background-color: var(--light-blue);
    transform: translateY(-3px);
}

/* Internal Pages Header */
.page-header {
    background-color: var(--primary-navy);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(7,20,38,1) 0%, rgba(11,28,53,0.9) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    color: var(--white);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.breadcrumb {
    margin-bottom: 0;
    background: transparent;
    padding: 0;
}

.breadcrumb-item {
    font-size: 15px;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-item.active {
    color: var(--accent-blue);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--light-bg);
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 3px rgba(67, 91, 255, 0.1);
    border-color: var(--accent-blue);
    background-color: var(--white);
}

label {
    font-weight: 500;
    color: var(--primary-text);
    margin-bottom: 8px;
}

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

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Detail Page */
.project-detail-header {
    margin-bottom: 40px;
}

.project-detail-img {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: var(--box-shadow);
}

.project-info-card {
    background-color: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.info-item {
    margin-bottom: 20px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-item span {
    display: block;
    color: var(--secondary-text);
    font-size: 14px;
    margin-bottom: 5px;
}

.info-item h5 {
    font-size: 16px;
    margin-bottom: 0;
}

.feature-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--secondary-text);
}

.feature-list li::before {
    content: '\F26A'; /* bootstrap icon check-circle-fill */
    font-family: 'Bootstrap-icons';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-blue);
}

/* Map */
.map-wrapper iframe {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* WhatsApp Float Button */
.whatsapp-float-btn {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float-btn:hover {
    background-color: #128C7E;
    color: #FFF;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }
}
