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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Modern Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes slideInFromRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4);
    }
}

@keyframes borderGlow {
    0%, 100% {
        border-color: #444;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0);
    }
    50% {
        border-color: #fff;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }
}

/* Site Header - logo left, nav right */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
    border: 2px solid #444;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    background: transparent;
}

.nav-links a:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.25);
}

.nav-links a:active {
    opacity: 0.8;
}

/* Header */
.main-header h1 {
    font-size: 3rem;
    letter-spacing: 2px;
}

/* Layout Rows */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
}

.row.reverse {
    flex-direction: row-reverse;
}

.text-side {
    flex: 1;
    padding: 20px;
}

.row .text-side {
    animation: slideInFromLeft 0.8s ease-out;
}

.row.reverse .text-side {
    animation: slideInFromRight 0.8s ease-out;
}

.text-side h2 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.text-side p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cccccc;
    transition: color 0.3s ease;
}

.text-side:hover h2 {
    background: linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-side:hover p {
    color: #ffffff;
}

.image-side {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-side img {
    width: 100%;
    max-width: 400px;
    border-radius: 12px;
    filter: grayscale(20%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out;
}

.image-side img:hover {
    transform: translateY(-10px) scale(1.03);
    filter: grayscale(0%);
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.2),
                0 0 30px rgba(255, 255, 255, 0.1);
}

/* Animated entrance for images in rows */
.row .image-side img {
    animation: slideInFromRight 0.8s ease-out;
}

.row.reverse .image-side img {
    animation: slideInFromLeft 0.8s ease-out;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .row, .row.reverse {
        flex-direction: column;
        text-align: center;
    }
}


.logo-container {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: translateX(5px);
}

/* "SHIFTZERO" - smaller */
.logo-top {
    font-size: 1.8rem;
    letter-spacing: 1px;
    font-weight: 300;
    color: #cccccc;
    animation: slideInFromLeft 0.6s ease-out;
}

/* "ROBOTICS AND AUTOMATION" - larger */
.logo-bottom {
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInFromLeft 0.8s ease-out;
}

/* Position the header in the top-left */
.main-header {
    padding: 10px 50px 50px;
    text-align: left;
}

/* Team Grid Styles */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    text-align: left;
    border: 2px solid #333;
    padding: 30px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInFromBottom 0.6s ease-out;
}

.team-member::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-member:hover::before {
    opacity: 1;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: #666;
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.1),
                0 0 30px rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.team-member p {
    margin: 5px 0;
}

.team-member p strong {
    color: #ffffff;
}

/* Job Card Styles */
.job-card {
    background: linear-gradient(145deg, #111 0%, #0a0a0a 100%);
    padding: 30px;
    margin-bottom: 20px;
    border-left: 4px solid #fff;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: slideInFromLeft 0.6s ease-out;
}

.job-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transition: right 0.6s;
}

.job-card:hover::after {
    right: 100%;
}

.job-card:hover {
    transform: translateX(10px);
    border-left-width: 6px;
    box-shadow: -5px 10px 30px rgba(255, 255, 255, 0.1),
                0 0 20px rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, #1a1a1a 0%, #111 100%);
}

.job-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.tag {
    font-size: 0.8rem;
    background: #333;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.job-card:hover .tag {
    background: #555;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.apply-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    animation: fadeIn 1.2s ease-out;
}

/* Contact Box Styles */
.contact-box {
    padding: 50px;
    border: 2px solid #333;
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInFromBottom 0.8s ease-out;
}

.contact-box:hover {
    border-color: #555;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.contact-info {
    margin: 30px 0;
    text-align: left;
    display: inline-block;
}

.contact-info p {
    margin: 15px 0;
    font-size: 1.1rem;
}

/* Modern Button Styles */
.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(145deg, #ffffff 0%, #e0e0e0 100%);
    color: black;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4),
                0 0 40px rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Utility Classes */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-in-left {
    animation: slideInFromLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInFromRight 0.8s ease-out;
}

.slide-in-bottom {
    animation: slideInFromBottom 0.8s ease-out;
}

/* Contact Info Card Hover Effects */
.contact-info > div > div:hover {
    transform: translateY(-5px);
    border-color: #555;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
    background: rgba(255,255,255,0.02);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo-top {
        font-size: 1.4rem;
    }

    .logo-bottom {
        font-size: 1.8rem;
    }

    .text-side h2 {
        font-size: 1.8rem;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px 20px;
    }

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

    .nav-links a {
        margin-left: 0;
        padding: 10px 14px;
        font-size: 0.85rem;
        touch-action: manipulation;
    }
}
