/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

/* ========================================
   NAVIGATION - WITH SOCIAL MEDIA ICONS
   ======================================== */

.navbar {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

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

.nav-logo h2 {
    color: white;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

/* When scrolled, logo text turns blue */
.navbar.scrolled .nav-logo h2 {
    color: #0984e3;
}

/* ========================================
   SOCIAL MEDIA ICONS - NEW SECTION
   ======================================== */

.nav-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: rgba(116, 185, 255, 0.3);
    border-color: #74b9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(116, 185, 255, 0.3);
}

.social-icon svg {
    transition: all 0.3s ease;
}

/* When scrolled, social icons adapt to new navbar style */
.navbar.scrolled .social-icon {
    background: rgba(9, 132, 227, 0.1);
    color: #0984e3;
    border-color: rgba(9, 132, 227, 0.2);
}

.navbar.scrolled .social-icon:hover {
    background: rgba(9, 132, 227, 0.2);
    border-color: #74b9ff;
    color: #74b9ff;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

/* When scrolled, menu links turn blue */
.navbar.scrolled .nav-menu a {
    color: #0984e3;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* When scrolled, hover effects become blue-based */
.navbar.scrolled .nav-menu a:hover,
.navbar.scrolled .nav-menu a.active {
    background-color: rgba(9, 132, 227, 0.1);
    color: #74b9ff;
}

.cta-button {
    background: #00b894 !important;
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #00a085 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

/* CTA button stays the same when scrolled since it's already a distinct color */
.navbar.scrolled .cta-button {
    background: #00b894 !important;
    color: white !important;
}

/* Mobile menu styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

/* Mobile menu toggle turns blue when scrolled */
.navbar.scrolled .mobile-menu-toggle {
    color: #0984e3;
}

/* ========================================
   RESPONSIVE DESIGN FOR NAVIGATION
   ======================================== */

@media (max-width: 1024px) {
    .nav-container {
        gap: 1.5rem;
    }
    
    .nav-social {
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-social {
        order: -1; /* Move social icons before the menu toggle */
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        flex-direction: column;
        padding: 1rem 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    /* Mobile menu background changes when navbar is scrolled */
    .navbar.scrolled .nav-menu {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    /* Mobile menu links turn blue when scrolled */
    .navbar.scrolled .nav-menu a {
        color: #0984e3;
    }
    
    .nav-menu.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem 15px;
        gap: 1rem;
    }
    
    .nav-social {
        gap: 0.5rem;
    }
    
    .social-icon {
        width: 28px;
        height: 28px;
    }
    
    .social-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
}

.btn-primary {
    background: #00b894;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.btn-primary:hover {
    background: #00a085;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 184, 148, 0.4);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-secondary:hover {
    background: white;
    color: #0984e3;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.placeholder-image {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* ========================================
   SERVICES SECTION - DARK BLUE BACKGROUND
   ======================================== */

.services {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: 700;
}

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

.service-card {
    background: rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(116, 185, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(116, 185, 255, 0.3);
    border-color: #74b9ff;
}

.service-card h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: #e0e0e0;
    line-height: 1.6;
}

/* ========================================
   ABOUT SECTION - DARK BLUE BACKGROUND
   ======================================== */

.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 700;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #e0e0e0;
    line-height: 1.7;
}

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

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(116, 185, 255, 0.2);
    backdrop-filter: blur(10px);
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.stat h3 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat p {
    color: #e0e0e0;
    font-weight: 500;
    margin: 0;
}

/* ========================================
   PORTFOLIO SECTION - SMALLER BOXES, TEXT ONLY
   ======================================== */

.portfolio {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
}

.portfolio h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
    font-weight: 700;
}

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

.portfolio-item {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(116, 185, 255, 0.2);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    position: relative;
    min-height: 120px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(116, 185, 255, 0.3);
    border-color: #74b9ff;
}

/* Remove the portfolio-image div completely */
.portfolio-image {
    display: none;
}

.portfolio-content {
    padding: 2rem 1.5rem;
    text-align: center;
}

.portfolio-content h3 {
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

.portfolio-content p {
    color: #e0e0e0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    text-decoration: none;
}

.portfolio-item:hover .portfolio-content h3 {
    color: #74b9ff;
}

.portfolio-item:hover .portfolio-content p {
    color: #ffffff;
}

/* Hover overlay effect - KEPT AS REQUESTED */
.portfolio-item::before {
    content: "View Project →";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(116, 185, 255, 0.9);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    text-decoration: none;
}

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

/* Override any inline styles */
.portfolio-item * {
    text-decoration: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .portfolio-content {
        padding: 1.5rem 1.25rem;
    }
    
    .portfolio-content h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-content {
        padding: 1.25rem 1rem;
    }
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact > .container > p {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

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

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem 1.5rem;
    border: 2px solid rgba(116, 185, 255, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #cccccc;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #74b9ff;
    box-shadow: 0 0 0 3px rgba(116, 185, 255, 0.1);
}

.contact-form button {
    background: #00b894;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.contact-form button:hover {
    background: #00a085;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a252f 100%);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-section h3,
.footer-section h4 {
    color: #74b9ff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    color: #e0e0e0;
}

.footer-section ul li:hover {
    opacity: 1;
}

.footer-section p {
    color: #e0e0e0;
}

.footer-bottom {
    border-top: 1px solid rgba(116, 185, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    opacity: 0.7;
}

/* ========================================
   ANIMATIONS & ENHANCED INTERACTIONS
   ======================================== */

.animated {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    /* Navigation */
    .nav-container {
        padding: 1rem;
    }
    
    /* Hero */
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .placeholder-image {
        width: 300px;
        height: 200px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    /* Services */
    .services {
        padding: 60px 0;
    }
    
    .services h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* About */
    .about {
        padding: 60px 0;
    }
    
    .about h2 {
        font-size: 2rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Portfolio */
    .portfolio {
        padding: 60px 0;
    }
    
    .portfolio h2 {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Contact */
    .contact {
        padding: 60px 0;
    }
    
    .contact h2 {
        font-size: 2rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .services h2,
    .about h2,
    .portfolio h2,
    .contact h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .stat {
        padding: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Additional CSS to style the about-commitment section */
.about-commitment {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(116, 185, 255, 0.2);
    backdrop-filter: blur(10px);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 3rem;
}

.about-commitment p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #e0e0e0;
    text-align: center;
    margin: 0;
}

.about-commitment em {
    color: #74b9ff;
    font-style: italic;
    font-weight: 600;
}