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

:root {
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --dark-color: #2C3E50;
    --light-bg: #F7F1E3;
    --text-dark: #2C3E50;
    --accent-gold: #FFD700;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Header Styles */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: var(--light-bg);
    position: relative;
    z-index: 100;
}

.header-left, .header-right {
    flex: 1;
}

.header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dark);
    padding: 5px 15px;
    border: 2px solid var(--text-dark);
    border-radius: 20px;
    display: inline-block;
}

.logo {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.company-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--primary-color);
    font-weight: 400;
}

.header-right {
    text-align: right;
}

.founder, .school {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-dark);
}

.school {
    margin-top: 5px;
    font-weight: 400;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 60px 50px 100px;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.1;
}

.circuit-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, var(--primary-color) 1px, transparent 1px),
        linear-gradient(0deg, var(--primary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-title {
    position: relative;
    z-index: 2;
    margin-bottom: 80px;
}

.title-line-1, .title-line-2 {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: 8px;
    line-height: 1;
}

.title-line-1 {
    font-size: clamp(40px, 8vw, 80px);
    color: var(--primary-color);
    animation: slideInLeft 1s ease-out;
}

.title-line-2 {
    font-size: clamp(50px, 10vw, 120px);
    color: var(--dark-color);
    animation: slideInRight 1s ease-out;
}

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

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

/* Hero Image Container */
.hero-image-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: rotateClip 20s linear infinite;
}

@keyframes rotateClip {
    0%, 100% {
        clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    }
    50% {
        clip-path: polygon(50% 0%, 90% 20%, 90% 80%, 50% 100%, 10% 80%, 10% 20%);
    }
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) brightness(0.95);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 107, 107, 0.3) 100%);
    mix-blend-mode: multiply;
}

/* Connection Dots */
.connection-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.dot-1 { top: 10%; left: 5%; animation-delay: 0s; }
.dot-2 { top: 15%; right: 8%; animation-delay: 0.3s; }
.dot-3 { top: 40%; left: -2%; animation-delay: 0.6s; }
.dot-4 { top: 45%; right: -2%; animation-delay: 0.9s; }
.dot-5 { bottom: 30%; left: 10%; animation-delay: 1.2s; }
.dot-6 { bottom: 25%; right: 12%; animation-delay: 1.5s; }
.dot-7 { bottom: 10%; left: 15%; animation-delay: 1.8s; }
.dot-8 { bottom: 8%; right: 18%; animation-delay: 2.1s; }

/* About Section */
.about {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
    background-color: var(--light-bg);
    gap: 80px;
    position: relative;
}

.about-decoration {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    opacity: 0.6;
}

.deco-line {
    width: 2px;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
}

.deco-icon {
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-content {
    max-width: 700px;
}

.about-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 6vw, 70px);
    color: var(--primary-color);
    letter-spacing: 6px;
    margin-bottom: 30px;
    line-height: 1.1;
}

.title-word {
    display: block;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.about-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* Services Section */
.services {
    padding: 100px 50px;
    background-color: #fff;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(40px, 6vw, 60px);
    color: var(--dark-color);
    letter-spacing: 6px;
    text-align: center;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--light-bg);
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.2);
    border-color: var(--primary-color);
}

.service-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.service-card h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 50px;
    background-color: var(--light-bg);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 30px;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    letter-spacing: 3px;
    color: white;
    margin-bottom: 10px;
}

.portfolio-overlay p {
    color: white;
    font-size: 14px;
}

/* Contact Section */
.contact {
    padding: 100px 50px;
    background-color: #fff;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-item p {
    font-size: 16px;
    color: var(--text-dark);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px 20px;
    border: 2px solid var(--light-bg);
    background-color: var(--light-bg);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    padding: 15px 40px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form button:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
}

/* Footer */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 20px;
    letter-spacing: 3px;
}

.footer-text {
    font-size: 12px;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .header-left, .header-right {
        text-align: center;
    }

    .hero {
        padding: 40px 20px 60px;
    }

    .about {
        flex-direction: column;
        padding: 60px 20px;
        gap: 40px;
    }

    .about-decoration {
        display: none;
    }

    .services, .portfolio, .contact {
        padding: 60px 20px;
    }

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

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-color);
}
