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

html {
	font-size: 16px; 
}

body { 
	font-family: 'Tajawal', sans-serif;
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	min-height: 100vh;
	color: #f3f4f6; 
	direction: rtl;
	text-align: right;
}

.container {
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;  
	padding-right: 1rem;
}

@media (min-width: 640px) { .container { max-width: 640px; } }
@media (min-width: 768px) { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

.gradient-text {
	background: linear-gradient(90deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* Header Styles */
.site-header { 
    padding-top: 1.5rem;    
    padding-bottom: 1.5rem;
    padding-left: 1rem;   
    padding-right: 1rem;
}
@media (min-width: 768px) { 
    .site-header {
        padding-left: 3rem; 
        padding-right: 3rem;
    }
}

.header-container { 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area { 
    display: flex;
    align-items: center;
}
.logo-icon { 
    font-size: 1.875rem; 
    line-height: 2.25rem;
    margin-left: 0.75rem; 
}
.logo-text { 
    font-size: 1.5rem; 
    line-height: 2rem;
    font-weight: 700;
}
@media (min-width: 768px) { 
    .logo-text {
        font-size: 1.875rem; 
        line-height: 2.25rem;
    }
}

@media (min-width: 768px) { 
    .main-nav {
        display: flex;
    }
    .main-nav > .nav-link + .nav-link { 
        margin-right: 1.5rem;
    }
}
.nav-link { 
    color: inherit; 
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
.nav-link:hover {
    color: #c4b5fd; 
}

.mobile-menu-button { 
    font-size: 1.5rem; 
    background: none;
    border: none;
    color: #e5e7eb; 
    cursor: pointer;
}
@media (min-width: 768px) { 
    .mobile-menu-button {
        display: none;
    }
}

/* Hero Section */
.hero-section { 
	padding-top: 2rem;
	padding-bottom: 2rem;
	padding-left: 1rem;
	padding-right: 1rem;
}

.hero-content { 
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}
.hero-title { 
	font-size: 2.25rem; 
	line-height: 2.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem; 
}
@media (min-width: 768px) { 
	.hero-title {
		font-size: 2.5rem; 
		line-height: 1.2;
	}
}

.hero-subtitle { 
    font-size: 1.25rem; 
    line-height: 1.75rem;
    margin-bottom: 2rem; 
    color: #d1d5db; 
}
@media (min-width: 768px) { 
    .hero-subtitle {
        font-size: 1.5rem; 
        line-height: 2rem;
    }
}

/* Tools Grid Section */
.tools-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	max-width: 72rem;
	margin: 0 auto;
}

@media (min-width: 768px) {
	.tools-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.tools-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 2.5rem;
	}
}

.tool-card {
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	padding: 2rem;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.tool-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(247, 37, 133, 0.1) 0%, rgba(114, 9, 183, 0.1) 50%, rgba(58, 12, 163, 0.1) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.tool-card:hover::before {
	opacity: 1;
}

.tool-card:hover {
	transform: translateY(-5px);
	border-color: rgba(247, 37, 133, 0.3);
	box-shadow: 0 10px 30px rgba(247, 37, 133, 0.2);
}

.tool-card > * {
	position: relative;
	z-index: 1;
}

.tool-icon {
	font-size: 3rem;
	margin-bottom: 1.5rem;
	background: linear-gradient(90deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.tool-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #f3f4f6;
}

.tool-description {
	font-size: 1rem;
	line-height: 1.7;
	color: #d1d5db;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.tool-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: #f72585;
	transition: gap 0.3s ease;
}

.tool-card:hover .tool-cta {
	gap: 1rem;
}

.tool-cta i {
	transition: transform 0.3s ease;
}

.tool-card:hover .tool-cta i {
	transform: translateX(-5px);
}

/* Content Section */
.content-section { 
	padding-bottom: 2rem;
	padding-left: 1rem;   
	padding-right: 1rem;
}

.section-content {
	max-width: 72rem;
	margin: 0 auto;
	background: rgba(255, 255, 255, 0.05);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 1rem;
	padding: 2rem;
}

.section-title { 
	font-size: 1.75rem;    
	line-height: 2rem;
	font-weight: 700;     
	margin-bottom: 2rem;  
	text-align: center;
	background: linear-gradient(90deg, #f72585 0%, #7209b7 50%, #3a0ca3 100%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.content-text {
	font-size: 1.1rem;
	line-height: 1.8;
	color: #d1d5db;
	margin-bottom: 1.5rem;
	text-align: justify;
}

.content-text p {
    margin-bottom: 1rem;
}

.content-text a {
    color: #00c900;
    text-decoration: none;
}

.content-text a:hover {
    color: #fff;
}

.subsection-title {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 1.5rem 0 1rem 0;
	color: #f3f4f6;
	padding-bottom: 0.5rem;
}

/* Image Styles */
.content-image {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 2rem auto;
	border-radius: 0.75rem;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer-bottom { 
    padding-top: 2rem;    
    padding-bottom: 2rem;
    padding-left: 1rem;   
    padding-right: 1rem;
    background-color: rgba(17, 24, 39, 0.7); 
}
@media (min-width: 768px) { 
    .site-footer-bottom {
        padding-left: 2rem; 
        padding-right: 2rem;
    }
}
@media (min-width: 1024px) { 
    .site-footer-bottom {
        padding-left: 4rem; 
        padding-right: 4rem;
    }
}
.footer-main-content { 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}
@media (min-width: 768px) { 
    .footer-main-content {
        flex-direction: row;
    }
}
.footer-info { 
    margin-bottom: 1rem; 
    text-align: center;
}
@media (min-width: 768px) { 
    .footer-info {
        margin-bottom: 0;
        text-align: right;
    }
}
.footer-logo-area { 
    display: flex;
    align-items: center;
    justify-content: center;
}
@media (min-width: 768px) { 
    .footer-logo-area {
        justify-content: flex-start; 
    }
}
.footer-logo-icon { 
    font-size: 1.5rem; 
    margin-left: 0.75rem; 
}
.footer-logo-text { 
    font-size: 1.25rem; 
    font-weight: 700;
}
.footer-tagline { 
    color: #9ca3af; 
    margin-top: 0.5rem; 
    font-size: 0.875rem; 
}

.footer-social-links { 
    display: flex;
	gap: 1rem;
	flex-direction: column;
	align-items: center;
}

@media (min-width: 768px) {
	.footer-social-links {
		flex-direction: row;
	}
}

.footer-section-title {
	font-size: 1rem;
	margin-bottom: 0.5rem;
	color: #d1d5db;
}

@media (min-width: 768px) {
	.footer-section-title {
		margin-bottom: 0;
		margin-left: 1rem;
	}
}

.social-link { 
    color: #9ca3af; 
    transition: color 0.15s ease-in-out;
    font-size: 1.25rem; 
    text-decoration: none;
}
.social-link:hover {
    color: #fff; 
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul {
    display: flex;
    gap: 2rem;
	flex-wrap: wrap;
	justify-content: center;
}

@media (min-width: 768px) {
	.footer-links ul {
		justify-content: flex-start;
	}
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

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

.footer-links ul li a:hover {
    color: #ff6600;
}

.footer-copyright-area { 
    border-top: 1px solid #1f2937; 
    margin-top: 2rem; 
    padding-top: 2rem; 
    text-align: center;
}
.copyright-text { 
    color: #6b7280; 
    font-size: 0.875rem; 
}
.copyright-link { 
    color: inherit; 
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}
.copyright-link:hover {
    color: #c4b5fd; 
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.hero-title {
		font-size: 1.75rem;
	}
	
	.controls-section {
		flex-direction: column;
		gap: 0.75rem;
	}
	
	.control-btn {
		width: 100%;
		justify-content: center;
	}
	
	.section-content {
		padding: 1.5rem;
		margin: 1rem;
	}
	
	.tools-grid {
		gap: 1.5rem;
	}
	
	.tool-card {
		padding: 1.5rem;
	}
}

/* Responsive Mobile Menu */
@media (max-width: 768px) {
  .main-nav {
	position: fixed;
	top: 0;
	width: 100%;
	background: linear-gradient(to right, #9333ea, #ec4899);
	padding: 2rem;
	box-shadow: -2px 0 6px rgba(0, 0, 0, 0.1);
	transition: right 0.3s ease-in-out;
	z-index: 1001;
	align-items: center;
	display: none;
	gap: 1rem;
  }

  .main-nav.active {
    left: 0;
	display: flex;
	flex-direction: column;
  }

  .mobile-menu-button {
    display: block;
    z-index: 1002;
    background: none;
    border: none;
    font-size: 1.5rem;
  }

  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
  }

  .menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* Desktop view */
@media (min-width: 769px) {
  .mobile-menu-button {
    display: none;
  }

  .menu-overlay {
    display: none;
  }
}