/* 
   Project: Roy Chin Portfolio 
   Theme: Modern Dark Mode, Clean, Professional
   Accent: #ff914d 
*/

:root {
    --primary: #ff914d;
    --primary-hover: #e07b3a;
    --dark-bg: #0f1115;
    --dark-card: #16181d;
    --light-text: #f0f2f5;
    --gray-text: #a0a4ab;
    --border-color: #2a2e35;
    --gradient-1: linear-gradient(135deg, #ff914d 0%, #ff5e62 100%);

    --font-main: 'Outfit', sans-serif;

    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 180px;
}

/* Reset & Scaffolding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-text);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    /* Pill shape */
    font-weight: 500;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 145, 77, 0.2);
}

.btn-outline {
    border-color: var(--light-text);
    color: var(--light-text);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 160px;
    /* Double size again (was 80px) */
    width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--gray-text);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link.btn-primary {
    color: #fff;
    padding: 0.6rem 1.5rem;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 10;
}

.eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* AI Orb Animation */
.ai-orb {
    width: 300px;
    height: 300px;
    position: relative;
    margin: 0 auto;
}

.orb-core {
    width: 150px;
    height: 150px;
    background: var(--gradient-1);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    opacity: 0.8;
    animation: pulse 4s infinite alternate;
}

.orb-ring {
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 145, 77, 0.3);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: rotate 10s infinite linear;
}

.orb-ring::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

/* Background Shapes */
.bg-shape {
    position: absolute;
    z-index: 1;
    filter: blur(100px);
    opacity: 0.2;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: purple;
    bottom: -50px;
    left: -100px;
    border-radius: 50%;
}

/* Stats Section */
.stats-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--gray-text);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Section */
.about-section {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.profile-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-content .lead {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.skills-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-text);
}

.skills-list li i {
    color: var(--primary);
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: #0b0c10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--dark-card);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 145, 77, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray-text);
    font-size: 0.95rem;
}

/* Process Section */
.process-section {
    padding: 8rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.step {
    position: relative;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
    transition: var(--transition);
}

.step:hover {
    border-color: var(--primary);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -2.5rem;
    left: 0;
}

.step h4 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(to bottom, var(--dark-bg), #000);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: var(--dark-card);
    border-radius: 20px;
    padding: 4rem;
    border: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.detail-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: #08090b;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand p {
    color: var(--gray-text);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--gray-text);
    margin-left: 2rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {

    .hero-content,
    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .stats-grid,
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 2rem;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Animations Keyframes */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.5;
    }
}

/* Utility Animations */
.fade-in-up,
.fade-in-left,
.fade-in-right,
.fade-in {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-left {
    transform: translateX(-30px);
}

.fade-in-right {
    transform: translateX(30px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Certifications Section */
.certifications-section {
    padding: 100px 0;
    background-color: var(--dark-bg);
    border-bottom: 1px solid var(--border-color);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.cert-card {
    background: var(--dark-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--primary);
}

.cert-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cert-img {
    width: 100%;
    height: 100%;
    object-fit: contain; 
    background-color: #fff;
    transition: transform 0.5s ease;
}

.cert-card:hover .cert-img {
    transform: scale(1.05);
}

.cert-info {
    padding: 1.5rem;
    text-align: center;
}

.cert-info h4 {
    color: var(--light-text);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cert-info p {
    color: var(--gray-text);
    font-size: 0.95rem;
    margin-bottom: 0;
}