/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #ffffff;
    line-height: 1.6;
}

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

/* Navigation */
.navbar {
    background-color: #111111;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

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

.logo h2 {
    color: #007bff;
    font-weight: 700;
    font-size: 1.8rem;
}

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

.nav-link {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #ff8c00;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #ff8c00;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 100px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #007bff;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

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

.hero-image {
    flex: 1;
}

.hero-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.placeholder-image {
    background-color: #222222;
    border: 2px dashed #007bff;
    padding: 100px 20px;
    text-align: center;
    color: #007bff;
    font-weight: 600;
    border-radius: 10px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    position: relative;
}

.placeholder-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
    border-radius: 10px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-secondary:hover {
    background-color: #007bff;
    color: #ffffff;
}


/* Features Section */
.features {
    padding: 80px 0;
    background-color: #111111;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #007bff;
}

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

.feature-card {
    background-color: #222222;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #333333;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #007bff;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: #cccccc;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #cccccc;
}

/* Page Headers */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
    background-color: #111111;
}

.page-header h1 {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #cccccc;
}

/* Content Sections */
.content-section {
    padding: 60px 0;
}

/* Our Story — animated gradient with overlay */
.content-section.story-gradient {
    position: relative;
    background: linear-gradient(135deg, #ff8c00 0%, #1a1a1a 40%, #000000 100%);
    background-size: 400% 400%;
    animation: storyGradientShift 7s ease-in-out infinite;
    overflow: hidden;
}

/* subtle dark film so white/blue text pops */
.content-section.story-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    pointer-events: none;
    z-index: 0;
}

/* ensure content sits above overlay */
.content-section.story-gradient>.container {
    position: relative;
    z-index: 1;
}

/* unique keyframes name – does NOT affect CTA */
@keyframes storyGradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}



.content-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 2.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.content-section p {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e8e8e8;
    margin-bottom: 1.8rem;
    font-weight: 400;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-section p:last-of-type {
    margin-bottom: 3rem;
}

.highlight-blue {
    color: #007bff;
    font-weight: 600;
}

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

.content-card {
    background-color: #222222;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #333333;
    min-width: 0; 
    box-shadow: 0 8px 16px rgba(255, 140, 0, 0.3);
}

.content-card .footer-contact-link {
    overflow-wrap: anywhere;   /* modern wrap */
    word-break: break-word;    /* nicer fallback than break-all */
    display: inline-block;     /* ensures wrapping respects max width */
    max-width: 100%;
  }

.content-card h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.content-card p {
    color: #cccccc;
    line-height: 1.6;
    font-size: 1rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #007bff;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #222222;
    border: 1px solid #333333;
    border-radius: 5px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

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

/* Footer */
.footer {
    background-color: #111111;
    padding: 40px 0 20px;
    border-top: 1px solid #333333;
}

.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: #007bff;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #007bff;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333333;
    color: #cccccc;
}

/* Animated underline for footer contact links — matches nav + footer quick links */
.footer-contact-link {
    position: relative;
    display: inline-block;
    color: #007bff;
    /* same starting blue */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    /* matches nav underline offset */
    width: 100%;
    height: 2px;
    /* matches nav underline thickness */
    background: linear-gradient(90deg, #007bff, #ff8c00, #007bff);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    /* synced with CTA + PortfolioLink */
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-contact-link:hover {
    color: #ffffff;
    /* white text on hover */
}

.footer-contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Developer photo card styling */
.photo-card {
    margin-bottom: 1rem;
    display: inline-block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
}

.photo-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

/* Hover Effects */
.photo-card:hover img {
    transform: scale(1.05);
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55),
        0 0 15px rgba(255, 140, 0, 0.3);
    /* Orange glow */
}

.center-text {
    text-align: center;
}

.cta-highlight {
    background:
        linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.25)),
        linear-gradient(135deg, #007bff, #ff8c00, #007bff);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;

    color: #ffffff;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: 10px;
    margin-top: 3rem;
}

.cta-highlight h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.cta-highlight p {
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}

.cta-highlight .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
}

.btn:focus,
.btn:focus-visible {
    outline: 2px solid #ff8c00;
    outline-offset: 2px;
}

/* Match .cta-highlight animation timing */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Reusable animated-gradient underline for in-content links */
.link-gradient {
    position: relative;
    font-weight: 600;
    text-decoration: none;
    color: #ff8c00;
    /* fallback color */
    transition: color 0.3s ease;
    white-space: nowrap;
    /* keeps arrow and text together if you use → */
}

.link-gradient::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #007bff, #ff8c00, #007bff);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    /* stays in sync with .cta-highlight */
    transition: width 0.3s ease;
}

.link-gradient:hover {
    color: #ffffff;
}

.link-gradient:hover::after,
.link-gradient:focus-visible::after {
    width: 100%;
}

/* Optional: boost keyboard accessibility */
.link-gradient:focus-visible {
    outline: 2px solid #ff8c00;
    outline-offset: 2px;
}

/* Synced animated gradient underline for nav links */
.nav-link {
    position: relative;
    /* needed for ::after positioning */
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    /* match your existing offset */
    height: 2px;
    width: 0;
    /* hidden until hover/active */
    background: linear-gradient(135deg, #007bff, #ff8c00, #007bff);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    /* synced with CTA + link-gradient */
    transition: width 0.3s ease;
}

/* Show on hover/focus */
.nav-link:hover::after,
.nav-link:focus-visible::after {
    width: 100%;
}

/* Keep underline on the current page */
.nav-link.active::after {
    width: 100%;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .nav-link::after {
        animation: none;
    }
}

/* Animated gradient underline for footer links */
.footer-section ul li a {
    position: relative;
    display: inline-block;
    /* keeps underline tight to text */
}

/* Base underline, hidden by default */
.footer-section ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px;
    width: 0;
    background: linear-gradient(135deg, #007bff, #ff8c00, #007bff);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    transition: width 0.3s ease;
}

/* Show underline on hover or focus */
.footer-section ul li a:hover::after,
.footer-section ul li a:focus-visible::after {
    width: 100%;
}

/* Keep underline visible for the active footer link */
.footer-section ul li a.active::after {
    width: 100%;
}

/* Accessibility: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .footer-section ul li a::after {
        animation: none;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #111111;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 120px 20px 50px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-img {
        max-height: 300px;
        object-fit: cover;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .features h2,
    .cta h2,
    .page-header h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-img {
        max-height: 250px;
        object-fit: cover;
    }
    
}

@media (max-width: 480px) {
    form .btn { width: 100%; }
  }
  

