@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease, transform .3s ease, opacity .3s ease;
}

.menu-toggle.active span:nth-child(1){
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2){
    opacity: 0;
}

.menu-toggle.active span:nth-child(3){
    transform: translateY(-7px) rotate(-45deg);
}

/* Tighter hamburger lines */
.menu-toggle { gap: 3px; }
.menu-toggle span { height: 2px; margin: 3px 0; }

/* Mobile nav panel: slide-down under header */
@media (max-width: 860px){
  .nav{
    position: fixed !important;
    top: var(--hdrH, 64px) !important;
    left: 0 !important; right: 0 !important;
    background:#1f2230 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: max-height .3s ease, opacity .2s ease !important;
  }
  .nav.active{
    max-height: calc(100vh - var(--hdrH, 64px)) !important;
    opacity: 1 !important;
  }
}

/* Slider mobile refinement */
@media (max-width: 860px){
  .slider{ height: auto !important; min-height: 0 !important; }
  .slide{
    position: relative !important;
    display: block !important;
    padding: 0 !important;
  }
  .slide img{
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    max-height: 48vh !important;
    object-fit: cover !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .slide-content{
    position: relative !important;
    padding: 16px 18px !important;
    transform: none !important;
    animation: none !important;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.45)) !important;
    border-top: 0 !important;
  }
  .slider-dots{ bottom: 12px !important; }
}
@media (max-width: 540px){
  .slider-btn{ display: none !important; }
  .dot{ width: 10px !important; height: 10px !important; }
  .dot.active{ width: 22px !important; }
}

/* Slider */
.slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide img {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    max-width: 50%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.3);
    padding-left: 2rem;
}

.slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    color: #fff;
    padding: 3rem;
    transform: translateY(100%);
    animation: slideUp 0.8s ease-out forwards;
    border-top: 3px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.slide-content p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 30px;
    border-radius: 6px;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: #667eea;
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
    font-size: 1.2rem;
    line-height: 2;
}

.about-content p {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-content p:nth-child(1) { animation-delay: 0.2s; }
.about-content p:nth-child(2) { animation-delay: 0.4s; }
.about-content p:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Topics Section */
.topics-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

.topics-section .section-title {
    color: #fff;
}

.topics-section .section-title::after {
    background: #fff;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.topic-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    animation: fadeInScale 0.8s ease-out forwards;
}

.topic-card:nth-child(1) { animation-delay: 0.1s; }
.topic-card:nth-child(2) { animation-delay: 0.2s; }
.topic-card:nth-child(3) { animation-delay: 0.3s; }
.topic-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.topic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.2);
}

.topic-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.topic-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.topic-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #fff;
    padding: 3rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: #00d4ff;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer-col p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.social-link {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #00d4ff;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.map-col iframe {
    border-radius: 10px;
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Countdown Timer */
.countdown {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 15px;
    margin: 1.5rem 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.countdown-title {
    font-size: 1.3rem;
    color: #00d4ff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.countdown-timer {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: row-reverse;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
}

/* Business Coaching Section */
.business-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.business-content {
    max-width: 900px;
    margin: 2rem auto 0;
    text-align: justify;
    font-size: 1.2rem;
    line-height: 2;
}

.business-content p {
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.business-content p:nth-child(1) { animation-delay: 0.2s; }
.business-content p:nth-child(2) { animation-delay: 0.4s; }
.business-content p:nth-child(3) { animation-delay: 0.6s; }

.business-section .section-title {
    color: #fff;
}

.business-section .section-title::after {
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
    }

    .nav.active {
        left: 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .slider {
        height: 100vh;
        display: flex;
        align-items: stretch;
    }

    .slide {
        position: absolute;
        flex-direction: column;
        justify-content: flex-start;
        height: 100vh;
        padding: 0;
        display: flex;
    }

    .slide img {
        position: relative;
        width: 100%;
        max-width: 100%;
        height: 45vh;
        min-height: auto;
        max-height: 45vh;
        object-fit: contain;
        object-position: center center;
        padding: 1rem 2rem;
        box-shadow: none;
    }

    .slide-content {
        position: relative;
        padding: 1.5rem 1rem;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.7));
        height: 55vh;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        transform: none;
        animation: none;
        overflow-y: auto;
        border-top: 3px solid rgba(255, 255, 255, 0.3);
    }

    .slide-content h2 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
        line-height: 1.4;
    }

    .slide-content h3 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 0.35rem;
        line-height: 1.5;
    }

    .countdown {
        padding: 1rem 0.8rem;
        margin: 0.8rem 0;
    }

    .countdown-title {
        font-size: 0.95rem;
        margin-bottom: 0.7rem;
    }

    .countdown-timer {
        gap: 0.8rem;
        flex-direction: row-reverse;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .slider-btn {
        padding: 0.5rem 1rem;
        font-size: 1.6rem;
        top: 22vh;
    }

    .slider-btn.prev {
        left: 5px;
    }

    .slider-btn.next {
        right: 5px;
    }

    .slider-dots {
        bottom: 10px;
        z-index: 100;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    .dot.active {
        width: 25px;
    }

    .business-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .slider {
        height: 100vh;
    }

    .slide {
        height: 100vh;
    }

    .slide img {
        height: 40vh;
        max-height: 40vh;
        padding: 0.8rem 2rem;
    }

    .slide-content {
        padding: 1.2rem 0.8rem;
        height: 60vh;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.75));
        border-top: 2px solid rgba(255, 255, 255, 0.3);
    }

    .slide-content h2 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
        line-height: 1.35;
    }

    .slide-content h3 {
        font-size: 0.95rem;
        margin-bottom: 0.45rem;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
        line-height: 1.45;
    }

    .countdown {
        padding: 0.8rem 0.6rem;
        margin: 0.6rem 0;
    }

    .countdown-title {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .countdown-timer {
        gap: 0.5rem;
        flex-direction: row-reverse;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    .slider-btn {
        padding: 0.4rem 0.9rem;
        font-size: 1.4rem;
        top: 20vh;
    }

    .slider-dots {
        bottom: 8px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }

    .dot.active {
        width: 20px;
    }
}

@media (max-width: 360px) {
    .slide img {
        height: 38vh;
        max-height: 38vh;
        padding: 0.5rem 1.5rem;
    }

    .slide-content {
        padding: 1rem 0.7rem;
        height: 62vh;
        border-top: 2px solid rgba(255, 255, 255, 0.25);
    }

    .slide-content h2 {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }

    .slide-content h3 {
        font-size: 0.9rem;
        margin-bottom: 0.35rem;
        line-height: 1.25;
    }

    .slide-content p {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
        line-height: 1.4;
    }

    .countdown {
        padding: 0.7rem 0.5rem;
        margin: 0.5rem 0;
    }

    .countdown-title {
        font-size: 0.85rem;
    }

    .countdown-value {
        font-size: 1.4rem;
    }

    .countdown-timer {
        gap: 0.4rem;
        flex-direction: row-reverse;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .slider-btn {
        padding: 0.3rem 0.7rem;
        font-size: 1.2rem;
    }
}

/* === Mobile final overrides (append at end of file) === */

/* Tighter hamburger */
.menu-toggle { gap: 3px; }
.menu-toggle span { height: 2px; margin: 3px 0; }

/* Mobile nav panel opens under header with slide-down */
@media (max-width: 860px){
  .nav{
    position: fixed !important;
    top: var(--hdrH, 64px) !important;
    left: 0 !important; right: 0 !important;
    background:#1f2230 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transition: max-height .3s ease, opacity .2s ease !important;
  }
  .nav.active{
    max-height: calc(100vh - var(--hdrH, 64px)) !important;
    opacity: 1 !important;
  }
}

/* Slider: make mobile-friendly (image 16:9, content below) */
@media (max-width: 860px){
  .slider{ height: auto !important; min-height: 0 !important; }
  .slide{
    position: relative !important;
    display: block !important;
    padding: 0 !important;
  }
  .slide img{
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9 !important;
    max-height: 48vh !important;
    object-fit: cover !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
  .slide-content{
    position: relative !important;
    padding: 16px 18px !important;
    transform: none !important;
    animation: none !important;
    background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.45)) !important;
    border-top: 0 !important;
  }
  .slider-dots{ bottom: 12px !important; }
}

/* Hide big nav arrows on very small screens, shrink dots */
@media (max-width: 540px){
  .slider-btn{ display: none !important; }
  .dot{ width: 10px !important; height: 10px !important; }
  .dot.active{ width: 22px !important; }
}
