/* styles.css */
:root {
    /* Brand Colors */
    --primary: #00bcd4;
    --secondary: #0a0f1f;
    --accent: #ffffff;
    --dark: #121826;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;
    
    /* Shadows */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 15px 40px rgba(0, 0, 0, 0.15);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--accent);
    background-color: var(--secondary);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    transition: var(--transition-fast);
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
}

.btn-primary:hover {
    background-color: #00a5bb;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 188, 212, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: rgba(0, 188, 212, 0.1);
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-fast);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(10, 15, 31, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-medium);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.logo-dot {
    color: var(--primary);
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 15, 31, 0.9), rgba(10, 15, 31, 0.7));
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 700px;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.rotating-text {
    color: var(--primary);
    font-weight: 700;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--light-gray);
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

.scroll-text {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background-color: var(--primary);
    animation: scrollLine 2s infinite;
}

/* Showcase Slider */
.showcase {
    background-color: var(--dark);
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-heavy);
}

.slider {
    display: flex;
    transition: transform var(--transition-normal);
    height: 500px;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 4rem;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10, 15, 31, 0.9), rgba(10, 15, 31, 0.5));
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.slide-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.slide-description {
    font-size: 1.1rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
}

.slider-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 10;
}

.slider-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: -20px;
    bottom: -20px;
    border: 3px solid var(--primary);
    border-radius: var(--radius-xl);
    z-index: -1;
}

.about-text {
    padding-left: 1rem;
}

.about-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.about-description {
    color: var(--light-gray);
    margin-bottom: 2.5rem;
}

.skills-container {
    margin-bottom: 3rem;
}

.skill {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 500;
}

.skill-percent {
    color: var(--primary);
    font-weight: 600;
}

.skill-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background-color: var(--primary);
    width: 0;
    border-radius: 4px;
    transition: width 1.5s ease;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 20px;
    width: 2px;
    height: calc(100% + 10px);
    background-color: rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-content h5 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    color: var(--light-gray);
    font-size: 0.95rem;
}

/* Services Section */
.services {
    background-color: var(--dark);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-normal);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: var(--shadow-heavy);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), #0066cc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--light-gray);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.project-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 15, 31, 0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-content {
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-category {
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-link {
    display: inline-block;
    color: var(--accent);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-fast);
}

.project-link:hover::after {
    width: 100%;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--dark);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.8s ease;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.stars {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--light-gray);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-name {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.author-title {
    color: var(--gray);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-btn {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--accent);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.testimonial-btn:hover {
    background-color: var(--primary);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.contact-description {
    color: var(--light-gray);
    margin-bottom: 2.5rem;
}

.contact-details {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-text p {
    color: var(--light-gray);
}

.social-links h4 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: rgba(255, 255, 255, 0.08);
}

.contact-form button {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #090d1a;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-text {
    color: var(--light-gray);
    margin-top: 1rem;
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a:hover {
    color: var(--primary);
}

.footer-newsletter p {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.9rem 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--accent);
    font-family: var(--font-body);
}

.newsletter-form button {
    background-color: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 0 1.5rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    cursor: pointer;
    transition: var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: #00a5bb;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scrollLine {
    0%, 100% {
        transform: scaleY(1);
        transform-origin: top;
    }
    50% {
        transform: scaleY(0);
        transform-origin: top;
    }
    51% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        background-color: var(--secondary);
        padding: 2rem 0;
        transition: var(--transition-normal);
        box-shadow: var(--shadow-medium);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .slide {
        padding: 0 2rem;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
}