/* Base Styles */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #8b5cf6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --accent: #0ea5e9;
    --success: #10b981;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; }
h2 { 
    font-size: 2.5rem;
    position: relative;
    margin-bottom: 3rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

h3 { font-size: 1.8rem; }
p { margin-bottom: 1.5rem; font-size: 1.1rem; }

/* Layout */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

section { padding: 100px 0; }
.text-center { text-align: center; }
.text-center h2:after { left: 50%; transform: translateX(-50%); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary { background: var(--secondary); }
.btn-secondary:hover { background: #7c3aed; }

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled { padding: 15px 0; }

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 40px; /* Adjust this value to make the logo larger or smaller */
    width: auto;
    object-fit: contain;
}

.logo i {
    margin-right: 10px;
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li { margin-left: 30px; }

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover:after { width: 100%; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Animated Background Circles */
.circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.1);
    opacity: 0.8;
    animation: float 15s infinite linear;
    bottom: -150px;
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    left: 5%;
    animation-duration: 20s;
    animation-delay: 0s;
}

.circle:nth-child(2) {
    width: 200px;
    height: 200px;
    left: 15%;
    animation-duration: 25s;
    animation-delay: 2s;
    animation-direction: reverse;
}

.circle:nth-child(3) {
    width: 400px;
    height: 400px;
    left: 35%;
    animation-duration: 30s;
    animation-delay: 4s;
}

.circle:nth-child(4) {
    width: 150px;
    height: 150px;
    left: 60%;
    animation-duration: 18s;
    animation-delay: 1s;
    animation-direction: reverse;
}

.circle:nth-child(5) {
    width: 250px;
    height: 250px;
    left: 80%;
    animation-duration: 22s;
    animation-delay: 3s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(240, 249, 255, 0.98) 0%, rgba(224, 242, 254, 0.98) 100%);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    color: var(--dark);
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--gray);
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.profile-image-container {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    border: 10px solid #fff;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    position: relative;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform 0.4s ease;
}

.profile-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2);
}

.profile-image-container:hover .profile-image {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text p {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .profile-image-container {
        width: 300px;
        height: 300px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.2rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .profile-image-container {
        width: 250px;
        height: 250px;
        border-width: 8px;
    }
}

@media (max-width: 576px) {
    .profile-image-container {
        width: 275px;
        height: 275px;
        border-width: 6px;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-btns {
        margin-top: 30px;
    }
}

.hero:before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    opacity: 0.1;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* Account for fixed header */
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(-50%) scale(1.1);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

.hero:after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    opacity: 0.1;
}

    margin-bottom: 2.5rem;
    color: var(--gray);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Services Section */
.services { background-color: white; }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: var(--light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.service-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.service-content { padding: 30px; }
.service-content h3 {
    display: flex;
    align-items: center;
}

.service-content h3 i {
    margin-right: 15px;
    color: var(--primary);
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

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

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.portfolio-content { padding: 25px; }
.portfolio-content h3 { margin-bottom: 10px; }
.portfolio-content p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Testimonials Section */
.testimonials { background-color: white; }

.testimonials-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 50px;
}

.testimonial {
    background: var(--light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    position: relative;
    margin-bottom: 40px;
}

.testimonial:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.2;
    font-family: serif;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    margin-bottom: 30px;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 20px;
}

.author-info h4 { margin-bottom: 5px; }
.author-info p { margin-bottom: 0; color: var(--gray); }

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    color: white;
}

.contact h2:after { background: white; }

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-top: 50px;
}

.contact-info h3 { margin-bottom: 30px; }

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-detail i {
    font-size: 1.5rem;
    margin-right: 20px;
    color: var(--accent);
}

.contact-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    min-height: 500px;
}

.contact-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.contact-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 30px;
    padding-top: 100px;
    border-radius: 0 0 15px 15px;
    opacity: 1;
    transition: all 0.3s ease;
}

.contact-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.contact-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.contact-image:hover .contact-img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.contact-image:hover .contact-overlay {
    padding-top: 120px;
}

.form-group { margin-bottom: 25px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero h1 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: var(--gray);
    line-height: 1.7;
}

.hero .btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.hero .btn-outline:hover {
    background: var(--primary);
    color: white;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-logo-img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: float 6s ease-in-out infinite;
}

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

/* Responsive adjustments for hero section */
@media (max-width: 992px) {
    .hero {
        padding: 80px 0;
        min-height: auto;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
        margin-bottom: 40px;
    }
    
    .hero-logo {
        margin: 0 auto;
        max-width: 80%;
    }
    
    .hero-logo-img {
        max-height: 300px;
    }
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    color: white;
    font-weight: 600;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    transition: var(--transition);
}

.footer-col:hover h3:after {
    width: 60px;
    background: var(--primary);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 0;
    transition: var(--transition);
}

.footer-col ul li:before {
    content: '→';
    position: absolute;
    left: -20px;
    color: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.footer-col ul li:hover {
    padding-left: 15px;
}

.footer-col ul li:hover:before {
    opacity: 1;
    left: 0;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    position: relative;
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(4px);
}

.social-links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.social-links a:hover {
    background: var(--primary);
    border-color: white;
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.social-links a:hover:before {
    left: 100%;
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: white;
    padding: 30px 0 15px;
    font-size: 0.95rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    gap: 15px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 5px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.divider {
    color: rgba(255, 255, 255, 0.3);
}

.footer-credits {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    padding: 10px 0;
}

.footer-credits a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-credits a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .divider {
        display: none;
    }
    
    .footer-links a:not(:last-child) {
        margin-right: 10px;
        padding-right: 10px;
        border-right: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .footer-credits {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Footer background decoration */
footer:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 70%);
    pointer-events: none;
}

footer:after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 70%);
    pointer-events: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    
    nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: var(--transition);
    }
    
    nav.active { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
    
    nav ul {
        flex-direction: column;
        padding: 20px 0;
    }
    
    nav ul li { margin: 0; }
    
    nav ul li a {
        display: block;
        padding: 15px 30px;
    }
    
    .hero-btns { 
        flex-direction: column;
        align-items: center;
    }
    .hero-content { 
        text-align: center; 
        max-width: 100%;
    }
    .hero:before, .hero:after { display: none; }
    
    .hero-grid {
        display: flex;
        flex-direction: column;
    }
    
    .hero-logo {
        order: -1;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
    }
    
    .hero-logo-img {
        max-width: 80%;
        height: auto;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    section { padding: 70px 0; }
    .hero { padding: 150px 0 70px; }
}
