/* styles.css - SW Technologies - Polished Professional UI with Enhanced Animations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #0a0c10;
    line-height: 1.5;
    scroll-behavior: smooth;
}

:root {
    --primary: #0a1927;
    --primary-dark: #05100e;
    --accent: #4f46e5;
    --accent-light: #6366f1;
    --accent-soft: #eef2ff;
    --gray-bg: #fafbfc;
    --text-dark: #111827;
    --text-muted: #4b5563;
    --white: #ffffff;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    --shadow-hover: 0 25px 30px -12px rgba(79, 70, 229, 0.15);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s ease;
}

section:hover h2:after {
    width: 100px;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2:after {
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo a {
    font-size: 1.75rem;
    font-weight: 800;
    text-decoration: none;
    background: linear-gradient(135deg, #0a1927, #4f46e5);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    transition: transform 0.3s ease;
    display: inline-block;
}

.logo a:hover {
    transform: scale(1.02);
}

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

.nav-links li a {
    text-decoration: none;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links li a:hover:after,
.nav-links li a.active:after {
    width: 100%;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f5f7ff 0%, #ffffff 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(79,70,229,0.05) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    max-width: 700px;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.service-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 1px solid #f1f5f9;
    animation: fadeInUp 0.6s ease-out backwards;
    animation-delay: calc(var(--card-index, 0) * 0.1s);
}

.service-card:nth-child(1) { --card-index: 1; }
.service-card:nth-child(2) { --card-index: 2; }
.service-card:nth-child(3) { --card-index: 3; }
.service-card:nth-child(4) { --card-index: 4; }

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2rem;
    color: var(--accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--accent);
    color: white;
}

.service-card h3 {
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--accent);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Strengths / Why Choose Us */
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.strength-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    animation: fadeInUp 0.6s ease-out backwards;
}

.strength-card:nth-child(1) { animation-delay: 0s; }
.strength-card:nth-child(2) { animation-delay: 0.1s; }
.strength-card:nth-child(3) { animation-delay: 0.2s; }
.strength-card:nth-child(4) { animation-delay: 0.3s; }

.strength-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-soft);
    box-shadow: var(--shadow-lg);
}

.strength-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.strength-card:hover i {
    transform: scale(1.15) translateY(-5px);
}

.strength-card h3 {
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background: var(--gray-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    border-left: 4px solid var(--accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.testimonial:nth-child(1) { animation-delay: 0s; }
.testimonial:nth-child(2) { animation-delay: 0.15s; }

.testimonial:hover {
    transform: translateX(8px) translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial i.fa-quote-left {
    color: var(--accent);
    opacity: 0.3;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: all 0.3s ease;
}

.testimonial:hover i.fa-quote-left {
    opacity: 0.6;
    transform: scale(1.1);
}

.testimonial p {
    font-style: normal;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    transition: transform 0.3s ease;
}

.testimonial:hover p {
    transform: translateX(4px);
}

.client-name {
    font-weight: 700;
    color: var(--accent);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: #94a3b8;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    position: relative;
    display: inline-block;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.footer-col:hover h4:after {
    width: 50px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.6rem;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: white;
    transform: translateX(5px);
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px) rotate(360deg);
}

.copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #1e2a3a;
    font-size: 0.8rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--accent);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: bounceIn 0.5s ease-out;
}

.back-to-top:hover {
    background: var(--accent-light);
    transform: translateY(-5px) scale(1.05);
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(10px, -10px) rotate(2deg);
    }
    66% {
        transform: translate(-5px, 5px) rotate(-1deg);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

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

/* Staggered animation for page load */
main > section {
    animation: fadeInUp 0.6s ease-out backwards;
}

main > section:nth-child(1) { animation-delay: 0s; }
main > section:nth-child(2) { animation-delay: 0.1s; }
main > section:nth-child(3) { animation-delay: 0.2s; }
main > section:nth-child(4) { animation-delay: 0.3s; }

/* Scroll reveal animation (triggers when elements come into view) */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* About Page Specific */
.story-box {
    background: var(--gray-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out;
}

.story-box:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-md);
}

.mission-vision {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
}

.mv-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.mv-card:first-child { animation-delay: 0s; }
.mv-card:last-child { animation-delay: 0.15s; }

.mv-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.mv-card i {
    transition: transform 0.3s ease;
}

.mv-card:hover i {
    transform: scale(1.1);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.team-card {
    background: white;
    border-radius: 1.5rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.team-card:nth-child(1) { animation-delay: 0s; }
.team-card:nth-child(2) { animation-delay: 0.1s; }
.team-card:nth-child(3) { animation-delay: 0.2s; }

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.team-img {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--accent-soft), #ddd6fe);
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-img {
    transform: scale(1.05) rotate(3deg);
    background: linear-gradient(135deg, var(--accent), #818cf8);
    color: white;
}

.stats-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    background: var(--primary);
    color: white;
    padding: 3rem 2rem;
    border-radius: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.stat {
    flex: 1;
    min-width: 120px;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.stat:nth-child(1) { animation-delay: 0s; }
.stat:nth-child(2) { animation-delay: 0.1s; }
.stat:nth-child(3) { animation-delay: 0.2s; }

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

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.stat:hover h3 {
    transform: scale(1.05);
    color: var(--accent-light);
}

/* Contact Page Specific */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease-out backwards;
}

.form-group:nth-child(1) { animation-delay: 0s; }
.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }
.form-group:nth-child(4) { animation-delay: 0.3s; }
.form-group:nth-child(5) { animation-delay: 0.4s; }

input, textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 1rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    transform: translateY(-2px);
}

input:hover, textarea:hover {
    border-color: var(--accent-light);
}

.error {
    color: #e53e3e;
    font-size: 0.75rem;
    margin-top: 0.3rem;
    display: block;
    animation: shake 0.3s ease-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.success-message {
    background: #10b981;
    color: white;
    padding: 0.8rem;
    border-radius: 0.8rem;
    margin-top: 1rem;
    text-align: center;
    animation: bounceIn 0.5s ease-out;
}

.contact-details {
    background: var(--gray-bg);
    padding: 2rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeInRight 0.6s ease-out;
}

.contact-details:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-md);
}

.contact-details p {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.contact-details p:hover {
    transform: translateX(5px);
    color: var(--accent);
}

.contact-details p i {
    transition: transform 0.3s ease;
}

.contact-details p:hover i {
    transform: scale(1.2);
}

.map {
    margin-top: 3rem;
    border-radius: 1.5rem;
    overflow: hidden;
    height: 300px;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    transition: transform 0.3s ease;
}

.map:hover iframe {
    transform: scale(1.01);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    section {
        padding: 3rem 0;
    }
    h2 {
        font-size: 1.75rem;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        gap: 2rem;
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-md);
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li a {
        font-size: 1.2rem;
    }
    .hamburger {
        display: block;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .mission-vision {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.9rem;
    }
    .btn-group .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
}