/* style.css */

/* Reset and base styles */
:root {
    --primary-dark: #0f1924;
    --primary-text: #ffffff;
    --accent-green: #00ff9d;
    --nav-text: #a4b4c4;
    --card-bg: #1a2632;
}

body {
    background-color: var(--primary-dark);
    color: var(--primary-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Navigation styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--nav-text);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-text);
}

/* Button styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-green);
    color: var(--primary-dark);
    border: none;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--nav-text);
    color: var(--primary-text);
}

/* Hero section styles */
.hero {
    text-align: center;
    padding: 8rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    color: var(--nav-text);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Section styles */
.section {
    padding: 6rem 2rem;
    scroll-margin-top: 5rem;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--accent-green);
}

/* About section */
.about-section {
    background-color: var(--card-bg);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.flip-card {
    background-color: transparent;
    width: 300px;
    height: 400px;
    perspective: 1000px;
    margin: 0 auto;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.touch-flip .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: linear-gradient(145deg, #1a2632, #0f1924);
    border-radius: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.flip-card-back {
    transform: rotateY(180deg);
}

/* Front card styles */
.profile-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.profile-name {
    color: var(--accent-green);
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.profile-title {
    color: var(--nav-text);
    font-size: 1.2rem;
    margin: 1rem 0 2rem;
    font-weight: 500;
}

.profile-icon {
    width: 64px;
    height: 64px;
}

.profile-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-green);
    stroke-width: 1.5;
}

/* Back card styles */
.about-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem;
    text-align: center;
    gap: 1.5rem;
}

.about-content h2 {
    color: var(--accent-green);
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.company-type {
    color: var(--nav-text);
    font-size: 1.2rem;
    margin: 0.5rem 0 2rem;
    font-weight: 500;
}

.about-description {
    color: var(--primary-text);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* Remove unused styles */
.about-points {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .flip-card {
        width: 280px;
        height: 380px;
    }

    .profile-name, .about-content h2 {
        font-size: 2rem;
    }

    .profile-title, .company-type {
        font-size: 1rem;
    }

    .about-description {
        font-size: 1rem;
    }

    .about-content {
        padding: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .company-type {
        font-size: 1rem;
        margin: 0.5rem 0 1.5rem;
    }

    .about-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .flip-card {
        width: 260px;
        height: 360px;
    }

    .profile-name, .about-content h2 {
        font-size: 1.8rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-description {
        font-size: 0.95rem;
    }
}

/* Services section */
.services-section {
    background-color: #1a1a2e;
    padding: 6rem 2rem;
}

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

.service {
    background-color: #1f1f3a;
    padding: 2rem;
    border-radius: 1rem;
    transition: transform 0.3s ease;
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 100%;
    height: 100%;
    stroke: #6b7cff;
}

.service h3 {
    color: var(--primary-text);
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.service p {
    color: var(--nav-text);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service {
        aspect-ratio: auto;
        min-height: 300px;
    }
}

/* Contact section */
.contact-section {
    background-color: var(--card-bg);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    margin-bottom: 3rem;
}

.contact-form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--nav-text);
    border-radius: 0.5rem;
    background-color: transparent;
    color: var(--primary-text);
}

.contact-form button {
    background-color: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
}

.contact-info {
    color: var(--nav-text);
}

.contact-info p {
    margin: 0.5rem 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--nav-text);
    background-color: var(--card-bg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    nav {
        padding: 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        gap: 1rem;
    }

    .section {
        padding: 4rem 1rem;
    }

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

/* DevOps Benefits Section */
.devops-benefits {
    padding: 6rem 0;
    background-color: var(--primary-dark);
    overflow: hidden;
    position: relative;
}

.benefits-container {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    animation: scrollHorizontally 30s linear infinite;
    width: max-content;
}

@keyframes scrollHorizontally {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.benefit-box {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    flex-shrink: 0;
}

.benefit-box h3 {
    color: var(--accent-green);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.benefit-box p {
    color: var(--nav-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Create a gradient overlay effect */
.devops-benefits::before,
.devops-benefits::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.devops-benefits::before {
    left: 0;
    background: linear-gradient(to right, var(--primary-dark), transparent);
}

.devops-benefits::after {
    right: 0;
    background: linear-gradient(to left, var(--primary-dark), transparent);
}

@media (max-width: 768px) {
    .benefit-box {
        width: 280px;
        padding: 1.5rem;
    }
}

/* Responsive Design */
@media screen and (min-width: 1400px) {
    .section-container {
        max-width: 1400px;
    }

    .flip-card {
        width: 350px;
        height: 450px;
    }

    .profile-name {
        font-size: 2.5rem;
    }

    .profile-title {
        font-size: 1.3rem;
    }

    .profile-icon {
        width: 100px;
        height: 100px;
    }

    .about-header h3 {
        font-size: 2rem;
    }

    .about-subtitle {
        font-size: 1.1rem;
    }

    .about-description {
        font-size: 1.1rem;
    }

    .about-highlights p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 1200px) {
    .section-container {
        max-width: 1000px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .section-container {
        max-width: 800px;
    }

    .hero {
        padding: 6rem 2rem 3rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .section {
        padding: 5rem 2rem;
    }

    .flip-card {
        width: 320px;
        height: 420px;
    }
}

@media screen and (max-width: 768px) {
    nav {
        padding: 1rem 2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 2.5rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .section {
        padding: 4rem 1.5rem;
    }

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

    .flip-card {
        width: 280px;
        height: 380px;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .profile-title {
        font-size: 1rem;
        margin: 0.5rem 0 1.5rem;
    }

    .profile-icon {
        width: 60px;
        height: 60px;
    }

    .about-header h3 {
        font-size: 1.6rem;
    }
    
    .about-subtitle {
        font-size: 0.9rem;
    }
    
    .about-description {
        font-size: 0.95rem;
    }
    
    .about-highlights p {
        font-size: 0.9rem;
    }

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

@media screen and (max-width: 480px) {
    nav {
        padding: 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .hero {
        padding: 4rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section {
        padding: 3rem 1rem;
    }

    .flip-card {
        width: 260px;
        height: 360px;
    }

    .profile-name {
        font-size: 1.6rem;
    }

    .profile-title {
        font-size: 0.9rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-header h3 {
        font-size: 1.4rem;
    }
    
    .about-subtitle {
        font-size: 0.85rem;
    }
    
    .about-description {
        font-size: 0.9rem;
    }
    
    .about-highlights p {
        font-size: 0.85rem;
    }

    .social-link {
        width: 20px;
        height: 20px;
    }
}

/* For very small devices */
@media screen and (max-width: 320px) {
    .flip-card {
        width: 240px;
        height: 340px;
    }

    .profile-icon {
        width: 50px;
        height: 50px;
    }

    .about-content {
        padding: 1rem;
    }
}

/* For landscape orientation on mobile devices */
@media screen and (max-height: 480px) and (orientation: landscape) {
    .flip-card {
        width: 280px;
        height: 300px;
    }

    .profile-icon {
        width: 50px;
        height: 50px;
        margin: 1rem auto;
    }

    .about-content {
        gap: 1rem;
    }

    .about-description {
        font-size: 0.85rem;
    }
}
