/* ===========================
   CSS Variables & Root Styles
   =========================== */
:root {
    --primary-color: #ff6b35;
    --primary-light: #ff8c5a;
    --secondary-color: #004e89;
    --accent-color: #1ac8ed;
    --background-dark: #0a0e27;
    --background-secondary: #111829;
    --background-tertiary: #1a2139;
    --text-primary: #ffffff;
    --text-secondary: #a8adc8;
    --text-tertiary: #6d7489;
    --border-color: #1f2841;
    --success-color: #10b981;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--background-dark) 0%, #0f1729 50%, var(--background-dark) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.015em;
    font-weight: 800;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
    color: var(--primary-color);
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

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

code {
    background-color: rgba(255, 107, 53, 0.1);
    padding: 0.35rem 0.7rem;
    border-radius: 0.35rem;
    color: var(--primary-color);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

/* ===========================
   Utility Classes
   =========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* ===========================
   Navigation Bar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 107, 53, 0.1);
    z-index: 1000;
    padding: 1.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    text-transform: uppercase;
    tracking: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    text-transform: capitalize;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover::before {
    width: 100%;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.4) 0%, transparent 40%, rgba(26, 33, 57, 0.3) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(26, 200, 237, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
    word-spacing: 0.1em;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: -1;
    transition: transform 0.3s ease;
    border-radius: 0.75rem;
    transform: scaleX(0);
    transform-origin: right;
}

.btn-secondary:hover {
    color: white;
}

.btn-secondary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===========================
   Skills Section
   =========================== */
.skills {
    padding: 8rem 0;
    background-color: transparent;
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
}

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

.skill-card {
    background: linear-gradient(135deg, rgba(26, 33, 57, 0.5) 0%, rgba(17, 24, 41, 0.5) 100%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card > * {
    position: relative;
    z-index: 1;
}

.skill-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(255, 107, 53, 0.15);
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(26, 200, 237, 0.05) 100%);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.skill-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===========================
   Case Studies Section
   =========================== */
.case-studies {
    padding: 8rem 0;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 53, 0.03) 50%, transparent 100%);
    position: relative;
}

.case-studies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.5), transparent);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.case-study {
    background: linear-gradient(135deg, rgba(26, 33, 57, 0.6) 0%, rgba(17, 24, 41, 0.6) 100%);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 1.25rem;
    padding: 3.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.case-study::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.case-study:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.12);
    transform: translateY(-5px);
}

.case-study:hover::before {
    opacity: 1;
}

.case-study > * {
    position: relative;
    z-index: 1;
}

.case-study-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 107, 53, 0.15);
}

.case-study-header h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.case-study-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.15), rgba(26, 200, 237, 0.08));
    color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-study-section {
    margin-bottom: 2.5rem;
}

.case-study-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
}

.case-study-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.architecture-list {
    list-style: none;
    color: var(--text-secondary);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.architecture-list li {
    padding: 1rem;
    background: rgba(255, 107, 53, 0.05);
    border-left: 3px solid var(--primary-color);
    border-radius: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.architecture-list li::before {
    content: '';
}

.case-study-media {
    margin-top: 2.5rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(26, 200, 237, 0.05) 100%);
    border-radius: 0.75rem;
    border: 1px dashed rgba(255, 107, 53, 0.2);
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-video {
    color: var(--text-tertiary);
    font-size: 1.1rem;
    font-style: italic;
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 8rem 0;
    background: linear-gradient(180deg, rgba(255, 107, 53, 0.02) 0%, transparent 100%);
    border-top: 1px solid rgba(255, 107, 53, 0.2);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.contact-link {
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: var(--transition);
    font-weight: 500;
}

.contact-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.availability {
    color: var(--text-secondary);
    font-size: 1rem;
}

.contact-message {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(26, 33, 57, 0.8) 0%, rgba(17, 24, 41, 0.8) 100%);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.contact-message p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 107, 53, 0.1);
    color: var(--text-tertiary);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes glow {
    0% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 107, 53, 0.4);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.2);
    }
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        width: 60px;
    }

    .nav-menu {
        gap: 1.5rem;
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 60px;
        min-height: 90vh;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-card {
        padding: 2rem;
    }

    .case-study {
        padding: 2rem;
    }

    .case-study-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .architecture-list {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-message {
        order: -1;
    }

    .skills, .case-studies, .contact {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .skill-card {
        padding: 1.5rem;
    }

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

    .case-study {
        padding: 1.5rem;
    }

    .case-study-header h3 {
        font-size: 1.25rem;
    }

    .case-study-section h4 {
        font-size: 1rem;
    }

    .contact-item h3 {
        font-size: 0.85rem;
    }

    .contact-message {
        padding: 1.5rem;
    }

    .contact-message p {
        font-size: 1rem;
    }
}

/* ===========================
   Print Styles
   =========================== */
@media print {
    .navbar,
    .hero-cta {
        display: none;
    }
}
