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

:root {
    --bg-dark: #0a0a0a;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: center;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-purple);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 20px 60px;
    overflow: hidden;
    background: #000000;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 10;
    color: #ffffff;
}

.text-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.hero-intro {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    text-align: center;
    margin-bottom: 40px;
    color: #cccccc;
    position: relative;
    z-index: 10;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    display: table;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* About Section */
.about {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 25px;
    margin-bottom: 60px;
}

.about-grid > .about-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.about-grid > .about-card:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 2;
}

.about-grid > .about-card:nth-child(3) {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

.about-grid > .about-card:nth-child(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-grid > .about-card:nth-child(4) > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-grid > .about-card:nth-child(5) {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.about-grid > .about-card:nth-child(5) > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.about-grid > .about-card:nth-child(6) {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    min-height: 320px;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.2);
}

.about-card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
    color: white;
}

.card-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
}

.feature-card h4:hover {
    transform: translateX(5px);
    color: #8b5cf6;
}

.feature-card p {
    color: #ffffff;
    line-height: 1.6;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.feature-card p:hover {
    transform: translateX(3px);
}

.passion-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.4);
    text-align: center;
}

.passion-card .card-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.passion-card h3 {
    font-size: 1.7rem;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.passion-card h3:hover {
    transform: scale(1.05);
}

.passion-card p {
    color: #ffffff;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.passion-card p:hover {
    transform: translateY(-2px);
}

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

.tech-stack h3 {
    margin-bottom: 20px;
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, color 0.3s ease;
    text-align: center;
}

.tech-stack h3:hover {
    transform: scale(1.05);
    color: #8b5cf6;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 2;
    justify-content: center;
    align-items: center;
}

.tech-icons span {
    background: rgba(139, 92, 246, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.tech-icons span:hover {
    background: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
}

.tech-icons span img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.about-card.highlight {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border-color: rgba(139, 92, 246, 0.5);
}

.cta-section {
    text-align: center;
    margin-top: 60px;
}

.cta-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

/* Projects Section */
.projects {
    padding: 100px 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-stack-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack-icons img {
    width: 30px;
    height: 30px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.tech-stack-icons img:hover {
    filter: grayscale(0%);
}

.project-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.project-link:hover {
    gap: 10px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 20px;
    background: var(--bg-secondary);
    overflow: hidden;
}

.testimonials-carousel {
    margin: 60px 0;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 30px;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    min-width: 500px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    flex-shrink: 0;
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--accent-purple);
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.testimonial-author p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.companies {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 80px;
    opacity: 0.6;
}

.company-logo img {
    height: 40px;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.company-logo:hover img {
    filter: grayscale(0%);
}

/* Experience Section */
.experience {
    padding: 100px 20px;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.experience-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 92, 246, 0.5);
}

.exp-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.exp-icon img {
    width: 100%;
    height: 100%;
}

.experience-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.experience-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Approach Section */
.approach {
    padding: 100px 20px;
    background: var(--bg-secondary);
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.approach-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    transition: transform 0.3s;
}

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

.phase-number {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.approach-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.approach-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 100px 20px;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

.contact-form textarea {
    resize: vertical;
    margin-bottom: 20px;
}

.submit-button {
    width: 100%;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 50px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: var(--accent-purple);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid > .about-card:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    
    .about-grid > .about-card:nth-child(2) {
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    
    .about-grid > .about-card:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .about-grid > .about-card:nth-child(4) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .about-grid > .about-card:nth-child(5) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .about-grid > .about-card:nth-child(6) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    
    .about-card {
        min-height: 280px;
        padding: 35px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
        font-size: 0.9rem;
    }

    .about-grid,
    .projects-grid,
    .experience-grid,
    .approach-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid > .about-card {
        grid-column: 1 / 2 !important;
        grid-row: auto !important;
        min-height: 250px;
        padding: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-width: 350px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        min-width: 280px;
        padding: 25px;
    }

    .companies {
        gap: 30px;
    }

    .company-logo img {
        height: 30px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.about,
.projects,
.testimonials,
.experience,
.approach,
.contact {
    animation: fadeIn 1s ease-out;
}

/* Smooth Scroll Padding */
section {
    scroll-margin-top: 80px;
}
