/* CIT Website Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --nav-height: 64px; /* fallback */
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: calc(var(--nav-height) + 12px);
}

/* Colors and Theme Variables */
:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-card: #1a1a2e;
    --bg-card-hover: #21213a;
    --text-primary: #f8fafc;
    --text-secondary: #adbfd8;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-orange: #f97316;
    --border-color: #334155;

    --android-color: #3b82f6;
    --ios-color: #3b82f6;
    --web-color: #06b6d4;
    --pc-color: #8b5cf6;
    --server-color: #f97316;
    --db-color: #f97316;

    --primary-text: 'Helvetica';
}

body {
    font-family: var(--primary-text);
    background: linear-gradient(135deg, var(--bg-primary), #0c1429);
    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;
    padding-bottom: 2vh;
    padding-top: 2vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 70%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo-text {
    font-size: clamp(18px, 2vw, 26px); /* responsive font size */
    font-weight: bold;
    color: var(--accent-blue);
    margin-left: 0; /* remove fixed offset */
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}


.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(15, 23, 42, 0.35);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}














/* ============================================================================ */

                                /* Hero Section */
/* ============================================================================ */

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column; /* stack white + blue title */
    justify-content: center; /* vertical center */
    align-items: center;     /* horizontal center */
    text-align: center;      /* ensures multi-line text is centered */
    width: 100%;             /* full width so centering works */
    margin: 0 auto;          /* in case container had side margins */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: brightness(0.4) blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center; /* centers horizontally */
    justify-content: center; /* centers vertically */
    height: 100%; /* makes flex take full hero height */
    text-align: center;
}



.hero-title-white {
    color: #ffffff;
    font-family: 'Helvetica', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    display: inline-block;
    line-height: 1.1;
    white-space: wrap;


}


.hero-title-blue {
    color: var(--accent-blue);
    font-family: 'Helvetica', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    display: block;
}



.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-primary);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center; /* vertically centers buttons */
    flex-wrap: wrap;
}

.Apps{
    font-size: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
    font-weight: bold;
}


.btn {
    padding: 14px 32px;       /* same for all buttons */
    font-size: 16px;
    display: flex;
    align-items: center;      /* vertical alignment */
    justify-content: center;  /* horizontal alignment */
    height: 50px;             /* same height for all buttons */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 0;            /* remove extra top margin */
    display: flex;
    align-items: center;    /* vertically centers text */
    justify-content: center; /* horizontally centers text */
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    background: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
}

.btn-secondary:hover {
    background: var(--accent-blue);
    color: white;
}

.btn-full {
    width: 100%;
}

/* Media query for 1360x768 screens */
/* Styles for screen width 1360px and height 768px */
/* Target screens roughly 1300px to 1400px wide */
@media (min-width: 1300px) and (max-width: 1400px) {
    /* Adjust navbar container */
    .nav-container {
        max-width: 85%;       /* widen container */
        margin: 0 auto;       /* center it */
    }

    /* Adjust spacing between nav items */
    .nav-menu {
        gap: 36px;            /* move menu items slightly apart */
    }

    /* Adjust logo spacing */
    .logo-text {
        margin-left: 10px;    /* move logo slightly from left */
    }
}


    /* Hero Section */
    .hero-title-white {
        font-size: 3.5rem;
    }

    .hero-title-blue {
        font-size: 3rem;
    }

    .hero-buttons .btn {
        padding: 16px 36px;
        font-size: 18px;
    }

    /* Sections padding adjustments */
    .services, .projects, .about, .technologies, .contact {
        padding: 60px 0;
    }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }






/* ============================================================================ */

                                /* ABOUT SECTION */
/* ============================================================================ */

.about {
    padding: 15vh 0;
    background: rgba(30, 41, 59, 0.3);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--accent-blue);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--accent-purple);
}

.about-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}


.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

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





/* Responsive for About Section */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================================ */
/* PROJECTS SECTION - same size/style as Services */
/* ============================================================================ */

/* Projects Section */
.projects {
    padding: 80px 0; /* match Services padding */
    background: rgba(30, 41, 59, 0.1);
}

.projects .section-header {
    text-align: center;
    margin-bottom: 64px;
}

.projects .section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.projects .section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* same as Services */
    gap: 32px; /* same as Services */
    max-width: 1200px; /* same as Services */
    margin: 0 auto;
    align-items: stretch; /* ensures all cards are same height */
}

.projects-grid a.project-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    cursor: pointer;
    
    /* FORCE same height as service-card */
    min-height: 450px; /* adjust until it matches your Services card */
    box-sizing: border-box;
}


/* Hover effect */
.projects-grid a.project-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

/* Icon effect */
.projects-grid a.project-card .project-icon {
    font-size: 34px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.projects-grid a.project-card:hover .project-icon {
    transform: scale(1.1);
}

.projects-grid a.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.projects-grid a.project-card .project-description {
    color: var(--text-secondary);
    line-height: 1.6;
}


/* Different hover colors for variation, matching service cards */
/* All project cards hover the same way */
.projects-grid a.project-card:hover {
    border-color: var(--accent-blue); /* same color for all */
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3); /* same shadow for all */
}




/* ============================================================================ */

                                /* SERVICES SECTION */
/* ============================================================================ */

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-primary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    
}

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

}

.android-card:hover, .ios-card:hover {
    border-color: var(--android-color);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.web-card:hover {
    border-color: var(--web-color);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.3);
}

.pc-card:hover {
    border-color: var(--pc-color);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.3);
}

.flask-card:hover, .mysql-card:hover {
    border-color: var(--server-color);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.service-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.android-card .service-subtitle, .ios-card .service-subtitle {
    color: var(--android-color);
}

.web-card .service-subtitle {
    color: var(--web-color);
}

.pc-card .service-subtitle {
    color: var(--pc-color);
}

.flask-card .service-subtitle, .mysql-card .service-subtitle {
    color: var(--server-color);
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.service-features li::before {
    content: '▶';
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    font-size: 10px;
}
/* ============================================================================ */

                                /* TECHNOLOGIES SECTION */
/* ============================================================================ */

.technologies {
    padding: 80px 0;
    background: rgba(30, 41, 59, 0.3);
}


.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.tech-category:hover {
    border-color: var(--server-color);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.3);
    background-color: var(--bg-card-hover);
}

.tech-category h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.android-color { color: var(--android-color); }
.ios-color { color: var(--android-color); }
.web-color { color: var(--web-color); }
.pc-color { color: var(--pc-color); }
.server-color { color: var(--server-color); }
.db-color { color: var(--server-color); }

.tech-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag-small {
    padding: 6px 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag-small:hover {
    background: var(--accent-blue);
    color: white;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.contact-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-item {
    margin-bottom: 16px;
}

.contact-item strong {
    display: block;
    color: var(--accent-blue);
    margin-bottom: 4px;
}

.contact-item p {
    color: var(--text-secondary);
    margin: 0;
}

.benefits-list {
    list-style: none;
}

.benefits-list li {
    color: var(--text-secondary);
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px;
}

.benefits-list li::before {
    content: '•';
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    font-size: 16px;
}

/* Footer */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3 {
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-blue);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

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

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

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Animations */
@keyframes code-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

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

@keyframes scroll-dot {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
    100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

.nav-container {
    max-width: 100%;
    position: relative;
}


    .nav-menu {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        left: 20px;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
        border-radius: 14px;
        background: rgba(15, 23, 42, 0.95);
        border: 1px solid var(--border-color);
        backdrop-filter: blur(12px);
        z-index: 1001;
    }

    .navbar.menu-open .nav-menu {
        display: flex;
    }

    .navbar.menu-open .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .navbar.menu-open .hamburger span:nth-child(2) {
        opacity: 0;
    }

    .navbar.menu-open .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-tags {
        gap: 8px;
    }
    
    .tech-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

}

/* ============================================================================ */
/*                              APPS SECTION                                    */
/* ============================================================================ */

.apps-section {
    padding-top: 0;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.app-card {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
    min-height: 200px;
}

.app-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.3);
}

.app-card .project-icon {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.app-icon-image {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.app-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
}

.app-card .project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }
}