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

body {
    font-family: 'Open Sans', sans-serif;
    background: #ffffff;
    color: #000000;
    overflow-x: hidden;
    padding-top: 66px;
}

.home-btn {
    color: white !important;
    font-weight: 600;
}

.home-btn:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Mobile responsive - show only emoji on small screens */
@media (max-width: 480px) {
    .home-btn {
        font-size: 1.2rem;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 66px;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.navbar.visible {
    transform: translateY(0);
}

.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
}

.nav-links li {
    width: 147px;
    height: 46px;
}

.nav-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.nav-links a.active {
    background: #ffffff;
    color: #000000;
    border-radius: 30px;
    border: 4px solid #ffffff;
}

.nav-links a.active:hover {
    background: #f8f9fa !important;
    color: #222 !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
}

/* Special handling when Contact button is active */
.contact-btn.active {
    background: white !important;
    color: #f5576c !important;
    /* Use contact button color for text */
    border: 2px solid white !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.contact-btn.active:hover {
    background: #f8f9fa !important;
    color: #f093fb !important;
}

/* Optional: Add a small dot indicator below active link */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 0.7;
        transform: translateX(-50%) scale(1.2);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

.nav-links .contact-btn {
    background: #ffffff;
    color: #000000;
    border-radius: 30px;
    border: 4px solid #ffffff;
}

.nav-links a:hover {
    transform: scale(1.05);
}

/* Hero Section with Dynamic Background */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg,
            #0f2027 0%,
            #203a43 25%,
            #2c5364 50%,
            #1c1c1c 75%,
            #0d0d0d 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.hero-image img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    position: relative;
    /* Needed for z-index to work */
    z-index: 2;
}


.btn-download-cv {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.2);
    /* You can change this */
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 5px;
    text-decoration: none;
    gap: 25px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-download-cv a:hover::before {
    left: 100%;
}

.btn-download-cv:hover {
    transform: scale(1.2) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 8px rgba(255, 255, 255, 0.1);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    margin-right: 20px;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background-color: #fff;
    border-radius: 2px;
}

/* Responsive behavior */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.85);
        padding: 4rem 2rem;
        transition: left 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-links.show {
        left: 0;
    }

    .nav-links li {
        margin-bottom: 1.5rem;
    }

    .nav-links a {
        color: white;
        font-size: 1.2rem;
        text-decoration: none;
    }

    .nav-links a:hover {
        text-decoration: underline;
    }
}

/* Animated gradient background */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating particles background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(80, 190, 200, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(100, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(180, 180, 180, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    33% {
        transform: translateY(-30px) rotate(120deg);
    }

    66% {
        transform: translateY(30px) rotate(240deg);
    }
}

/* Geometric shapes overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.8;
    }
}

.hero-content {
    z-index: 10;
    position: relative;
    max-width: 900px;
    padding: 0 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 60px 40px;
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.greeting-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 80px;
    line-height: 90px;
    margin-bottom: 10px;
    background: linear-gradient(45deg,
            #00f0ff 0%,
            #0affef 25%,
            #00d2ff 50%,
            #0099cc 75%,
            #00f0ff 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out, textShine 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    position: relative;
}

@keyframes textShine {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.greeting-text::after {
    content: '👋';
    position: absolute;
    right: -60px;
    top: 10px;
    font-size: 60px;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(20deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

.name-text {
    font-family: 'Advent Pro', sans-serif;
    font-weight: 600;
    font-size: 60px;
    line-height: 70px;
    margin-bottom: 15px;
    color: #fff;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.8),
        0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both, glow 4s ease-in-out infinite;
    position: relative;
}

@keyframes glow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    50% {
        text-shadow: 0 0 40px rgba(255, 255, 255, 1), 0 4px 12px rgba(0, 0, 0, 0.4);
    }
}

.title-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.tagline-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-style: italic;
}

.contact-info {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 50px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.social-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.social-links a {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    transform: scale(1.2) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 0 0 8px rgba(255, 255, 255, 0.1);
}

.social-links svg {
    width: 28px;
    height: 28px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
}

/* Add floating elements */
.floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatUp 8s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatUp 10s ease-in-out infinite 2s;
}

.floating-element:nth-child(3) {
    bottom: 30%;
    left: 20%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatUp 12s ease-in-out infinite 4s;
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-100px) rotate(180deg);
        opacity: 0.2;
    }
}

/* Typewriter effect for tagline */
.typewriter {
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid white;
    display: inline-block;
    animation: typing 6s steps(50, end) 1s infinite, blink 0.75s step-end infinite;
}

@keyframes typing {
    0% {
        width: 0;
    }

    40% {
        width: 100%;
    }

    60% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

@keyframes blink-caret {

    0%,
    100% {
        border-color: transparent;
    }

    50% {
        border-color: #00f0ff;
    }
}

/* Sections */
.section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 38px;
    letter-spacing: 0.35em;
    border: 8px solid #000;
    padding: 20px 40px;
    display: inline-block;
    background: white;
    position: relative;
    border-radius: 16px;
    z-index: 2;
}

/* About Section */
.about-content {
    text-align: center;
    margin-bottom: 60px;
}

.about-text {
    font-size: 16px;
    line-height: 24px;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #34495e;
}

.experience-highlight {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service {
    text-align: center;
    padding: 40px 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
    border: 3px solid transparent;
}

.service:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    margin: 0 auto 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: #2c3e50;
}

.service p {
    font-size: 15px;
    line-height: 22px;
    color: #5d6d7e;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-top: 40px;
}

.skill-category h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    color: #2c3e50;
    text-align: center;
}

.skill-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-item {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Companies Section with Logo Images */
.companies-section {
    background: #f8f9fa;
    padding: 80px 20px;
    margin: 60px -20px;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.company-logo {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.company-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Individual Company Logo Styles */
.company-logo.foodstuffs-ni {
    background-image: url('../img/companies/foodstuffs_logo.jpg');
}

.company-logo.air-nz {
    background-image: url('../img/companies/airnz_logo.png');
}

.company-logo.spark {
    background-image: url('../img/companies/spark_logo.png');
}

.company-logo.vector {
    background-image: url('../img/companies/vector_logo.png');
}

.company-logo.sky-tv {
    background-image: url('../img/companies/sky_logo.jpeg');
}

.company-logo.nzta {
    background-image: url('../img/companies/nzta_logo.png');
}

.company-logo.fiserv {
    background-image: url('../img/companies/fiserv_logo.png');
}

.company-logo.directfn {
    background-image: url('../img/companies/directfn_logo.png');
}

.company-logo.perfect_commerce {
    background-image: url('../img/companies/perfect_commerce_logo.png');
}

.company-logo.aepona {
    background-image: url('../img/companies/aepona_logo.png');
}

.company-logo.meaningful {
    background-image: url('../img/companies/meaningful_logo.jpeg');
}

.company-logo.eroad {
    background-image: url('../img/companies/eroad_logo.png');
}

/* Fallback text styling when images don't load */
.company-logo:not([style*="background-image"]) {
    font-size: 16px;
    line-height: 1.3;
}

/* Hide text when background image loads successfully */
.company-logo.air-nz,
.company-logo.foodstuffs-ni,
.company-logo.spark,
.company-logo.sky-tv,
.company-logo.vector,
.company-logo.nzta,
.company-logo.fiserv,
.company-logo.directfn,
.company-logo.perfect_commerce,
.company-logo.aepona,
.company-logo.meaningful,
.company-logo.eroad {
    text-indent: -9999px;
    color: transparent;
}

/* Education Section */
.education-item {
    background: #f8f9fa;
    padding: 30px;
    border-left: 5px solid #3498db;
    margin-bottom: 30px;
    border-radius: 0 10px 10px 0;
}

.education-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #3498db;
    font-size: 14px;
    margin-bottom: 10px;
}

.education-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.education-subtitle {
    font-weight: 600;
    color: #5d6d7e;
    margin-bottom: 8px;
}

.education-institution {
    color: #7f8c8d;
    font-size: 14px;
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.contact-description {
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 40px;
    color: #34495e;
}

.form-group {
    margin-bottom: 30px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 3px solid #3498db;
    background: transparent;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #7f8c8d;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -10px;
    font-size: 12px;
    color: #3498db;
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: #2980b9;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    letter-spacing: 0.05em;
}

.submit-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 20px 40px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

#backToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: #333;
    color: white;
    border: none;
    outline: none;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

#backToTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    transform: scale(1.1);
    background: #3498db;
}

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.copyright {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #bdc3c7;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading placeholder for images */
.company-logo::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.company-logo.loading::after {
    opacity: 1;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .greeting-text {
        font-size: 40px;
        line-height: 50px;
    }

    .name-text {
        font-size: 35px;
        line-height: 45px;
    }

    .title-text {
        font-size: 20px;
        line-height: 26px;
    }

    .tagline-text {
        font-size: 16px;
        line-height: 22px;
    }

    .section-title {
        font-size: 24px;
        padding: 15px 30px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 10px;
    }

    .nav-links li {
        width: 120px;
        height: 40px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .contact-info {
        gap: 15px;
    }

    .contact-item {
        font-size: 12px;
    }

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

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

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

    .hero {
        background-attachment: scroll;
        /* Fix for mobile parallax issues */
    }
}

.app-store-badge {
    width: 140px;
    margin-top: 10px;
}

.games-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.game-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-width: 250px;
    flex: 1 1 250px;
    text-align: center;
    transition: transform 0.2s ease;
}

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

.game-card img:first-child {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.game-card h3 {
    margin-bottom: 10px;
    font-size: 1.2em;
}


@media (max-width: 480px) {
    .greeting-text {
        font-size: 32px;
        line-height: 40px;
    }

    .name-text {
        font-size: 28px;
        line-height: 35px;
    }

    .section {
        padding: 60px 15px;
    }

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

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

}
