/* General Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Poppins', 'Segoe UI', sans-serif;
scroll-behavior: smooth;
color: white;
background-color: #0f1923;
overflow-x: hidden;
background-image: url('images/back.jpg');
background-size: cover;
background-attachment: fixed;
background-position: center;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
width: 10px;
}

::-webkit-scrollbar-track {
background: #0a121b;
}

::-webkit-scrollbar-thumb {
background: #02a8cc;
border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
background: #00d0ff;
}

header {
background: rgba(6, 22, 40, 0.85);
padding: 15px 20px;
position: fixed;
width: 100%;
top: 0;
z-index: 999;
display: flex;
justify-content: space-between;
align-items: center;
box-shadow: 0 2px 15px rgba(0, 208, 255, 0.3);
backdrop-filter: blur(8px);
transition: all 0.4s ease;
text-align: left;
}

header.scrolled {
padding: 8px 20px;
background: rgba(6, 22, 40, 0.95);
}

header h1 {
font-size: 2.8em;
background: linear-gradient(45deg, #00d0ff, #02a8cc);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: 0 2px 10px rgba(0, 208, 255, 0.2);
transition: all 0.3s ease;
margin: 0;
}

header h2 {
display: none; /* Hide if unused */
}

/* Menu Toggle Button */
.menu-toggle {
display: none;
font-size: 1.5em;
color: #02a8cc;
cursor: pointer;
transition: all 0.3s ease;
}

.menu-toggle:hover {
color: #00d0ff;
}

nav ul {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
align-items: center;
list-style: none;
margin: 0;
padding: 0;
gap: 25px;
}

nav ul li a {
color: #cce6ff;
text-decoration: none;
font-size: 1.1em;
position: relative;
padding: 5px 0;
transition: all 0.3s;
}

nav ul li a:hover {
color: #02a8cc;
}

nav ul li a::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 0;
background: linear-gradient(90deg, #00d0ff, transparent);
transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

nav ul li a:hover::after {
width: 100%;
}


.home-section {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 5%;
position: relative;
color: white;
padding-top: 80px;
}

.home-section::before {
content: "";
position: absolute;
inset: 0;
background: rgba(1, 14, 32, 0.7);
z-index: 1;
}

.home-left, .home-right {
z-index: 2;
position: relative;
}

.home-left {
flex: 1;
max-width: 50%;
animation: slideUpFade 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.home-left h1 {
font-size: 4.5em;
background: linear-gradient(45deg, #00d0ff, #0288a7);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
animation: gradientShift 6s infinite alternate;
}

.home-left h2 {
font-size: 2.2em;
color: #c1e3ff;
position: relative;
margin-bottom: 20px;
}

.home-left h2::after {
content: "";
position: absolute;
bottom: -10px;
left: 0;
width: 60px;
height: 3px;
background: linear-gradient(90deg, #00d0ff, transparent);
animation: expandWidth 3s infinite alternate;
}

.intro-text {
font-size: 1.3em;
color: #dbefff;
margin-top: 30px;
line-height: 1.6;
position: relative;
overflow: hidden;
}

.home-right {
flex: 1;
display: flex;
justify-content: center;
align-items: center;
animation: fadeRotateIn 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.photo-box {
width: 550px;
height: 550px;
background: rgba(1, 23, 46, 0.3);
border: 2px solid #00d0ff;
overflow: hidden;
border-radius: 15px;
box-shadow: 0 0 40px rgba(0, 208, 255, 0.2);
transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
position: relative;
transform: perspective(1000px) rotateY(5deg);
}

.photo-box::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(135deg, rgba(0, 208, 255, 0.1), transparent);
z-index: 3;
}

.photo-box:hover {
transform: perspective(1000px) rotateY(-5deg) scale(1.03);
box-shadow: 0 0 60px rgba(0, 208, 255, 0.4);
border-color: #00f0ff;
}

.photo-box img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.8s ease;
filter: contrast(1.1) brightness(1.05);
}

.photo-box:hover img {
transform: scale(1.05);
}

.section {
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-size: cover;
background-position: center;
position: relative;
overflow: hidden;

}
/* Add this new class for the black box behind text */
.text-box {
background: rgba(0, 0, 0, 0.6); /* Black with 60% opacity */
padding: 30px;
border-radius: 15px;
color: white;
backdrop-filter: blur(4px);
box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

/* Keep your existing styles and ensure this updated version is included */
.about-container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 30px;
z-index: 2;
position: relative;
width: 100%;
max-width: 1200px;
margin: 0 auto;
padding: 40px 30px;
}

.about-text {
flex: 1;
min-width: 300px;
}

.about-text h2 {
font-size: 3em;
background: linear-gradient(45deg, #00d0ff, #0288a7);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
margin-bottom: 20px;
}

.about-text p {
font-size: 1.2em;
line-height: 1.6;
color: white;
}

.about-photos {
display: flex;
flex-direction: column;
align-items: center;
gap: 20px;
margin-left: 0;
}

.about-photos .photo-box {
width: 600px;
height: 600px;
}


.section:not(:first-of-type)::before {
content: '';
display: block;
height: 2px;
background: linear-gradient(to right, transparent, #00d0ff, transparent);
margin-bottom: 40px; /* space between line and section content */
}

.section::before {
content: "";
position: absolute;
inset: 0;
background: rgba(1, 14, 32, 0.7);
z-index: 1;
}

.content {
position: relative;
text-align: center;
max-width: 800px;
z-index: 2;
padding: 30px;
background: rgba(2, 19, 36, 0.6);
border-radius: 15px;
border-left: 3px solid #00d0ff;
border-right: 3px solid #00d0ff;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(500px);
opacity: 0;
transform: translateY(30px);
transition: opacity 0.8s ease, transform 0.8s ease;
}

.section.active .content {
opacity: 1;
transform: translateY(0);
}

.content h2 {
font-size: 3em;
margin-bottom: 20px;
background: linear-gradient(45deg, #00d0ff, #0288a7);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
position: relative;
display: inline-block;
}

.content h2::after {
content: "";
position: absolute;
bottom: -5px;
left: 25%;
width: 50%;
height: 2px;
background: linear-gradient(90deg, transparent, #00d0ff, transparent);
}

.content p,
.content ul {
font-size: 1.2em;
line-height: 1.6;
color: #e6f2ff;
}

.content ul {
list-style: none;
padding: 0;
text-align: left;
margin: 0 auto;
max-width: 80%;
}

.content ul li {
margin-bottom: 12px;
padding-left: 30px;
position: relative;
}

.content ul li::before {
content: "✓";
position: absolute;
left: 0;
color: #00d0ff;
font-weight: bold;
}

.social-icons {
margin-top: 30px;
display: flex;
justify-content: center;
gap: 20px;
}

.icon {
font-size: 1.8em;
color: #00d0ff;
background: rgba(1, 19, 36, 0.3);
width: 60px;
height: 60px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
border: 1px solid rgba(0, 208, 255, 0.3);
}

.icon:hover {
color: #fff;
background: rgba(0, 208, 255, 0.2);
transform: translateY(-5px) scale(1.1);
box-shadow: 0 5px 15px rgba(0, 208, 255, 0.3);
border-color: #00d0ff;
}

.cv-download {
background: linear-gradient(45deg, #0288a7, #00d0ff);
color: #fff;
text-decoration: none;
padding: 12px 25px;
border-radius: 30px;
display: inline-block;
font-weight: bold;
margin-top: 25px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 208, 255, 0.3);
position: relative;
overflow: hidden;
z-index: 1;
}

.cv-download::before {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(45deg, #00d0ff, #0288a7);
opacity: 0;
z-index: -1;
transition: opacity 0.5s ease;
}

.cv-download:hover {
transform: translateY(-3px);
box-shadow: 0 7px 20px rgba(0, 208, 255, 0.4);
}

.cv-download:hover::before {
opacity: 1;
}

.cv-download i {
margin-right: 8px;
}


/* Animation Keyframes */
@keyframes slideUpFade {
from {
opacity: 0;
transform: translateY(50px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes fadeRotateIn {
from {
opacity: 0;
transform: translateX(50px) rotate3d(0, 1, 0, 15deg);
}
to {
opacity: 1;
transform: translateX(0) rotate3d(0, 1, 0, 0deg);
}
}

@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
100% {
background-position: 100% 50%;
}
}

@keyframes expandWidth {
from {
width: 60px;
}
to {
width: 100px;
}
}

/* Responsive Adjustments - Enhanced Mobile View */
@media (max-width: 1200px) {
.home-section {
flex-direction: column;
justify-content: center;
text-align: center;
gap: 40px;
}

.home-left {
max-width: 90%;
margin-top: 60px;
}

.home-left h2::after {
left: 50%;
transform: translateX(-50%);
}

.photo-box {
width: 350px;
height: 350px;
}

.about-photos .photo-box {
width: 350px;
height: 350px;
}
}

@media (max-width: 768px) {
header h1 {
font-size: 2.2em;
}

header h2 {
font-size: 1.1em;
}

.menu-toggle {
display: block;
font-size: 1.8em; /* Increased size for better touch target */
padding: 5px 10px;
}

/* Improved mobile navigation menu */
nav ul {
flex-direction: column;
position: fixed;
top: 60px;
right: -100%;
width: 100%;
height: auto;
max-height: 0;
overflow: hidden;
background: rgba(6, 22, 40, 0.95);
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
transition: all 0.5s ease;
padding: 0;
}

nav ul.active {
right: 0;
max-height: 500px;
padding: 20px 0;
z-index: 9999; /* Ensure menu is on top */
}

nav ul li {
width: 100%;
text-align: center;
margin: 0;
}

nav ul li a {
display: block;
padding: 15px; /* Larger touch target */
margin: 5px 0;
font-size: 1.2em; /* Larger text */
border-bottom: 1px solid rgba(0, 208, 255, 0.1); /* Separator */
}

nav ul li:last-child a {
border-bottom: none;
}

.home-left h1 {
font-size: 2.8em; /* More readable size */
}

.home-left h2 {
font-size: 1.8em;
}

.home-left p {
font-size: 1.1em;
}

.content h2 {
font-size: 2.5em;
}

.photo-box {
width: 300px;
height: 300px;
margin: 0 auto; /* Center on mobile */
}

.about-photos .photo-box {
width: 300px;
height: 300px;
margin: 0 auto;
}

/* Better mobile section spacing */
.section {
padding: 100px 20px 40px;
}

/* Improve content boxes layout on mobile */
.content {
width: 95%;
padding: 25px 15px;
margin: 15px auto;
}

.content ul {
max-width: 100%;
}

.content ul li {
padding-left: 25px;
margin-bottom: 15px;
font-size: 1em;
}

/* Fix for multiple content boxes in one section */
#projects .content {
margin-bottom: 30px;
}

/* SWOT section fix for mobile */
#swot .content div {
gap: 30px;
}

/* Improved social icons layout */
.social-icons {
flex-wrap: wrap;
gap: 15px;
}
}

.icon {
width: 50px;
height: 50px;
font-size: 1.5em;
}
