/*
* Modern Portfolio - Design System
* Author: Ertuğrul Sürmeli (AI Generated)
* Theme: Cosmic Engineering (Dark/Gold/Cyan)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-accent: #D4AF37;
    /* Gold - Engineering */
    --text-tech: #00f2ff;
    /* Cyan - Tech */

    --eng-color: #D4AF37;
    --tech-color: #00f2ff;
    --media-color: #a855f7;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--eng-color), var(--tech-color));
    --gradient-text: linear-gradient(to right, #ffffff, #a1a1aa);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Modern Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -2px;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.75rem;
    font-weight: 500;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    color: var(--eng-color);
}

.text-cyan {
    color: var(--tech-color);
}

.text-media {
    color: var(--media-color);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--eng-color);
    color: var(--eng-color);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--eng-color);
    z-index: -1;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    color: #000;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--tech-color);
    color: var(--tech-color);
    margin-left: 1rem;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--tech-color);
    z-index: -1;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    color: #000;
}

.btn-secondary:hover::before {
    width: 100%;
}

/* Card Style */
.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    transition: var(--transition-normal);
}

.card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================== LAYOUT & HEADER ================== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: transparent;
    transition: var(--transition-normal);
}

.scroll-header {
    background: rgba(5, 5, 5, 0.85);
    /* Slightly transparent dark bg */
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-list {
    display: flex;
    column-gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #fff;
}

.nav-toggle,
.nav-close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

/* ================== HOME SECTION ================== */
.home {
    position: relative;
    padding-top: 8rem;
    /* Account for fixed header */
}

.home-container {
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.home-content {
    max-width: 600px;
    z-index: 10;
}

.home-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.home-title {
    background: -webkit-linear-gradient(white, #666);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.home-profession {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.divider {
    color: var(--text-secondary);
    font-weight: 300;
}

.home-description {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 500px;
}

.home-buttons {
    display: flex;
    align-items: center;
}

/* Visual Geometry (CSS Art) */
.home-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    z-index: 1;
    pointer-events: none;
}

.visual-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 6s ease-in-out infinite;
}

.gold-circle {
    width: 300px;
    height: 300px;
    background: var(--eng-color);
    top: -50px;
    right: 50px;
}

.cyan-circle {
    width: 250px;
    height: 250px;
    background: var(--tech-color);
    bottom: -50px;
    left: 0;
    animation-delay: -3s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* ================== ABOUT SECTION ================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.about-img {
    display: flex;
    justify-content: center;
}

.img-box {
    width: 300px;
    height: 350px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--text-secondary);
    position: relative;
    backdrop-filter: blur(10px);
}

.img-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 3px solid var(--eng-color);
    border-left: 3px solid var(--eng-color);
    border-radius: 20px 0 0 0;
}

.img-box::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 3px solid var(--tech-color);
    border-right: 3px solid var(--tech-color);
    border-radius: 0 0 20px 0;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--bg-card);
    padding: 1.5rem 1rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    font-family: 'Space Grotesk', sans-serif;
}

.info-name {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ================== SKILLS SECTION ================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skills-content {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.skills-content:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.skills-title {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-group {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 2rem;
}

.skills-data {
    display: flex;
    column-gap: 1rem;
}

.skills-icon {
    font-size: 1.25rem;
    margin-top: 4px;
}

.skills-icon.gold {
    color: var(--eng-color);
}

.skills-icon.cyan {
    color: var(--tech-color);
}

.skills-icon.media {
    color: var(--media-color);
}

.skills-name {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.skills-level {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ================== SERVICES SECTION ================== */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.service-link {
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    font-weight: 500;
    margin-top: auto;
}

.service-link:hover {
    padding-left: 0.5rem;
}

/* ================== CONTACT SECTION ================== */
.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: start;
}

.contact-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    margin: 2rem 0;
}

.contact-link {
    display: flex;
    align-items: center;
    column-gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-link:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    column-gap: 1.5rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Form Styles */
.contact-form {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-input:focus {
    outline: none;
    border-bottom-color: var(--tech-color);
}

/* ================== FOOTER ================== */
.footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ================== RESPONSIVE DESIGN ================== */
@media screen and (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    .home-visual {
        position: absolute;
        width: 300px;
        height: 300px;
        right: 0;
        opacity: 0.3;
    }

    .nav-list {
        column-gap: 1.5rem;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Mobile Menu */
    .nav-toggle,
    .nav-close {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        background: var(--bg-dark);
        width: 80%;
        height: 100%;
        padding: 6rem 3rem;
        transition: 0.4s;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .show-menu {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        row-gap: 2.5rem;
    }

    .nav-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    /* Layout Adjustments */
    .home-container {
        flex-wrap: wrap-reverse;
        justify-content: center;
        text-align: center;
    }

    .home-profession {
        justify-content: center;
    }

    .home-buttons {
        justify-content: center;
    }

    .home-visual {
        display: none;
        /* Simplify for mobile */
    }

    .about-grid,
    .skills-container,
    .services-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-img {
        margin-bottom: 2rem;
    }

    .contact-form {
        order: -1;
        /* Form first on mobile usually better? No, keep info first */
        order: 1;
        margin-top: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .home-profession {
        flex-direction: column;
        row-gap: 0.5rem;
        font-size: 1.25rem;
    }

    .divider {
        display: none;
    }

    .about-info {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        display: flex;
        margin: 0.5rem 0;
    }

    .home-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-secondary {
        margin-left: 0;
    }
}