/*
Theme Name: RyteTechs
Description: Professional technology consulting website theme for RyteTechs
Author: RyteTechs
Version: 1.0
Text Domain: rytetechs
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #2563eb;
    --primary-orange: #ea580c;
    --primary-red: #dc2626;
    --dark-blue: #1e40af;
    --white: #ffffff;
    --light-gray: #f8fafc;
    --dark-gray: #334155;
    --text-gray: #64748b;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-image {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.logo-container:hover .logo-image {
    transform: rotate(360deg) scale(1.1);
    background: var(--primary-orange);
}

.logo-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-blue);
    transition: color 0.3s ease;
    margin-bottom: -0.2rem;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.logo-container:hover .logo-text {
    color: var(--primary-orange);
}

.logo-container:hover .logo-tagline {
    color: var(--primary-blue);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-blue);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

/* Desktop Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    color: var(--text-gray);
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e2e8f0;
    list-style: none;
    margin-top: 1rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
    font-weight: 500;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-blue);
    transform: translateX(5px);
}

.dropdown-menu a:hover::before {
    content: '→';
    position: absolute;
    left: 1rem;
    color: var(--primary-blue);
    font-weight: bold;
}

.dropdown-menu a.active {
    background: var(--light-gray);
    color: var(--primary-blue);
    font-weight: 600;
}

.dropdown-menu a.active::before {
    content: '→';
    position: absolute;
    left: 1rem;
    color: var(--primary-blue);
    font-weight: bold;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background: var(--primary-orange);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background: var(--primary-orange);
}

/* FIXED Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: white;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* CRITICAL: Fixed menu list styling */
.mobile-menu ul {
    list-style: none !important;
    padding: 100px 1.5rem 50px 1.5rem !important;
    margin: 0 !important;
    min-height: 100vh;
}

.mobile-menu > ul > li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu > ul > li:last-child {
    border-bottom: none;
}

/* Menu links */
.mobile-menu a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    display: block;
    padding: 1.2rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu > ul > li > a:hover,
.mobile-menu > ul > li > a.active {
    color: var(--primary-blue);
    padding-left: 1rem;
}

.mobile-menu > ul > li > a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 2px;
}





/* FINAL FIX: Replace the entire mobile dropdown section in your style.css */

/* Mobile Dropdown */
.mobile-dropdown {
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
}

.mobile-dropdown-toggle {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    /* REDUCED: From 1.2rem to 0.8rem */
    padding: 1.2rem 0 !important;
    font-size: 1.1rem !important;
    font-weight: 500;
    color: var(--dark-gray);
    width: 100%;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: none;
    background: none;
    margin: 0 !important;
    /* ADDED: Reduce line height */
    line-height: 1.2 !important;
}

.mobile-dropdown-toggle:hover,
.mobile-dropdown.active .mobile-dropdown-toggle {
    color: var(--primary-blue);
    padding-left: 1rem !important;
    /* Keep same reduced padding */
    padding-top: 0.8rem !important;
    padding-bottom: 0.8rem !important;
}

.mobile-dropdown.active .mobile-dropdown-toggle::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.mobile-dropdown-arrow {
    font-size: 1.2rem; /* REDUCED: From 1.4rem */
    font-weight: bold;
    transition: transform 0.3s ease;
    color: var(--primary-blue);
    min-width: 20px; /* REDUCED: From 25px */
    text-align: center;
    line-height: 1;
}

.mobile-dropdown.active .mobile-dropdown-arrow {
    transform: rotate(45deg);
}

/* CRITICAL FIX: Remove all space when closed */
.mobile-dropdown-menu {
    background: var(--light-gray) !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 8px;
    list-style: none !important;
    overflow: hidden;
    
    /* CRITICAL: Complete collapse when closed */
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    opacity: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: none !important;
    
    /* ADDED: Remove any potential spacing */
    line-height: 0 !important;
    font-size: 0 !important;
    
    /* CRITICAL: Position absolute to remove from document flow when closed */
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    z-index: -1 !important;
    
    
    transition: height 0.3s ease, opacity 0.3s ease, z-index 0s ease 0.3s !important;
    /*transition: height 0.3s ease, opacity 0.3s ease !important;*/
}

/* When active: expand to show content */
.mobile-dropdown.active .mobile-dropdown-menu {
    
    position: static !important; /* Back to normal flow */
    z-index: auto !important;
    
    height: auto !important;
    min-height: auto !important;
    max-height: 500px !important;
    opacity: 1;
    padding: 0.5rem 0 !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    
    /* Reset font properties */
    line-height: normal !important;
    font-size: inherit !important;
    
    transition: height 0.3s ease, opacity 0.3s ease, z-index 0s ease 0s !important;
}

/* Additional fix: Ensure the dropdown container itself takes no space when closed */
.mobile-dropdown:not(.active) {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Force submenu items to have no spacing when parent is closed */
/*.mobile-dropdown:not(.active) .mobile-dropdown-menu li {*/
/*    display: none !important;*/
/*    height: 0 !important;*/
/*    margin: 0 !important;*/
/*    padding: 0 !important;*/
/*}*/

/* Force zero spacing on all children when closed */
.mobile-dropdown:not(.active) .mobile-dropdown-menu,
.mobile-dropdown:not(.active) .mobile-dropdown-menu * {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    border: none !important;
}

/* Show items only when dropdown is active */
.mobile-dropdown.active .mobile-dropdown-menu li {
    display: flex !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    list-style: none !important;
    align-items: center !important;
}

.mobile-dropdown.active .mobile-dropdown-menu li:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    color: var(--text-gray) !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    transition: all 0.3s ease;
    font-weight: 400 !important;
    position: relative;
    margin: 0 !important;
    text-decoration: none !important;
}

.mobile-dropdown-menu a:hover,
.mobile-dropdown-menu a.active {
    background: white !important;
    color: var(--primary-blue) !important;
    padding-left: 2.2rem !important;
    font-weight: 500 !important;
}

.mobile-dropdown-menu a:hover::before,
.mobile-dropdown-menu a.active::before {
    content: '→';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-blue);
    font-weight: bold;
}

/* Additional safety: Ensure no phantom spacing */
.mobile-dropdown:not(.active) {
    margin-bottom: 0 !important;
}

.mobile-dropdown:not(.active) * {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Ensure smooth transitions */
.mobile-dropdown-menu * {
    transition: all 0.3s ease !important;
}

/* ADDED: Match other menu items height */
.mobile-menu > ul > li > a {
    padding: 0.8rem 0 !important; /* REDUCED: Match dropdown toggle */
    line-height: 1.2 !important;
}

/* Mobile menu main list spacing */
.mobile-menu > ul > li {
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-menu > ul > li:last-child {
    border-bottom: none;
}






/* Body scroll prevention */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    display: flex;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 4rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1.2s ease-out;
    background: linear-gradient(45deg, white, #e2e8f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: var(--primary-orange);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.3s both;
    text-shadow: 0 2px 10px rgba(234, 88, 12, 0.3);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.6s both;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1.2s ease-out 0.4s both;
}

.floating-cards {
    position: relative;
    width: 450px;
    height: 450px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: float 8s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.floating-card:hover {
    transform: translateY(-15px) scale(1.08) rotate(2deg);
    box-shadow: 0 25px 50px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.25);
}

.floating-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.floating-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.floating-card:nth-child(1) {
    top: 0;
    left: 0;
    animation-delay: 0s;
    background: rgba(37, 99, 235, 0.2);
}

.floating-card:nth-child(2) {
    top: 80px;
    right: 0;
    animation-delay: 2.5s;
    background: rgba(234, 88, 12, 0.2);
}

.floating-card:nth-child(3) {
    bottom: 0;
    left: 80px;
    animation-delay: 5s;
    background: rgba(220, 38, 38, 0.2);
}

/* Overview Section */
.overview {
    padding: 8rem 0;
    background: var(--light-gray);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
    font-size: 3.5rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-orange));
    border-radius: 2px;
}

.section-header p {
    font-size: 1.3rem;
    color: var(--text-gray);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.overview-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    border-left: 6px solid var(--primary-blue);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overview-card:hover::before {
    opacity: 1;
}

.overview-card:nth-child(1) {
    animation-delay: 0.2s;
}

.overview-card:nth-child(2) {
    border-left-color: var(--primary-orange);
    animation-delay: 0.4s;
}

.overview-card:nth-child(2)::before {
    background: linear-gradient(135deg, transparent 0%, rgba(234, 88, 12, 0.05) 100%);
}

.overview-card:nth-child(3) {
    border-left-color: var(--primary-red);
    animation-delay: 0.6s;
}

.overview-card:nth-child(3)::before {
    background: linear-gradient(135deg, transparent 0%, rgba(220, 38, 38, 0.05) 100%);
}

.overview-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    border-left-width: 8px;
}

.overview-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
}

.overview-card p {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: #cbd5e0;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--primary-orange);
}

.footer-bottom {
    border-top: 1px solid #4a5568;
    padding-top: 1rem;
    text-align: center;
    color: #a0aec0;
}

/* Social Media Links Styles */
.social-media-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #4a5568;
}

.social-media-links h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.social-icon:hover::before {
    opacity: 0.2;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Individual Social Media Colors */
.social-icon.facebook {
    background: #1877f2;
    color: white;
}

.social-icon.facebook::before {
    background: #1877f2;
}

.social-icon.facebook:hover {
    background: #166fe5;
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.4);
}

.social-icon.twitter {
    background: #000000;
    color: white;
}

.social-icon.twitter::before {
    background: #000000;
}

.social-icon.twitter:hover {
    background: #1a1a1a;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-icon.linkedin {
    background: #0a66c2;
    color: white;
}

.social-icon.linkedin::before {
    background: #0a66c2;
}

.social-icon.linkedin:hover {
    background: #095bb5;
    box-shadow: 0 8px 25px rgba(10, 102, 194, 0.4);
}

.social-icon.github {
    background: #333333;
    color: white;
}

.social-icon.github::before {
    background: #333333;
}

.social-icon.github:hover {
    background: #2b2b2b;
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
}

.social-icon.youtube {
    background: #ff0000;
    color: white;
}

.social-icon.youtube::before {
    background: #ff0000;
}

.social-icon.youtube:hover {
    background: #e60000;
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.social-icon.telegram {
    background: #0088cc;
    color: white;
}

.social-icon.telegram::before {
    background: #0088cc;
}

.social-icon.telegram:hover {
    background: #007bb5;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.4);
}

/* Page-specific styles */
.page-content {
    padding: 8rem 0 4rem;
}

.about-page {
    background: white;
}

.services-page {
    background: var(--light-gray);
}

.contact-page {
    background: var(--light-gray);
}

.account-page {
    background: linear-gradient(135deg, var(--light-gray) 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Enhanced Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(1deg);
    }
    50% {
        transform: translateY(-30px) rotate(-1deg);
    }
    75% {
        transform: translateY(-15px) rotate(0.5deg);
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links,
    .auth-buttons {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }

    .hero {
        min-height: 100vh;
        padding: 2rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-top: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero-text .tagline {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .floating-cards {
        width: 320px;
        height: 320px;
        margin: 0 auto;
    }

    .floating-card {
        padding: 1.5rem;
    }

    .floating-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .floating-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .overview {
        padding: 6rem 0;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .section-header p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .overview-card {
        padding: 2rem;
        margin: 0 1rem;
    }

    .social-media-links {
        margin-top: 1.5rem;
        padding-top: 1rem;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .mobile-menu ul {
        padding: 90px 1rem 40px 1rem;
    }
    
    .mobile-menu ul li a,
    .mobile-dropdown-toggle {
        font-size: 1rem;
        padding: 1rem 0;
    }
    
    .mobile-dropdown-menu a {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.95rem !important;
    }
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Fix for smaller screens */
@media (max-width: 480px) {
    .social-icons {
        gap: 0.6rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-icon svg {
        width: 16px;
        height: 16px;
    }

    .mobile-menu ul {
        padding: 85px 0.8rem 35px 0.8rem;
    }
}

/* Fix for very small screens */
@media (max-width: 375px) {
    .mobile-menu ul {
        padding: 80px 0.6rem 30px 0.6rem;
    }
    
    .mobile-menu ul li a,
    .mobile-dropdown-toggle {
        font-size: 0.95rem;
        padding: 0.9rem 0;
    }
}