/* Basic Reset & Font */
:root {
    /* Sawad-inspired Color Palette */
    --bg-main: #000000; /* Solid black background from Sawad */
    --bg-section-card: #141414; /* Background for cards/sections (if added back) */
    --bg-profile-card: #FFFFFF; /* White background for the About Me card */
    --text-light: #F0F0F0; /* Light text for readability */
    --text-medium: #A0A0A0; /* Slightly darker light for secondary text */
    --text-dark-card: #000000; /* Black text for white card background */
    --text-medium-card: #4B4B4B; /* Dark gray for secondary text on white card */
    
    /* Accent Colors from Sawad */
    --accent-primary-sawad: #FF6B00; /* Main orange from Sawad */
    --accent-secondary-sawad: #00FFC2; /* Green accent from Sawad */
    
    /* Gradients */
    --gradient-hero-text: linear-gradient(90deg, #F0F0F0 0%, #A0A0A0 100%); /* Light gradient for hero text (for stats if added back) */
    --gradient-skills-front: linear-gradient(214.02deg, #EA5F5F 6.04%, #EEAA55 92.95%); /* Your specified orange gradient for skill cards (if added back) */

    --primary-heading-color: var(--text-light);
    --shadow-color-dark: rgba(0, 0, 0, 0.8); /* Darker shadow for depth */
    --shadow-color-subtle: rgba(0, 0, 0, 0.4); /* Subtle shadow for blending */
    --shadow-color-card-white: rgba(0, 0, 0, 0.25); /* Specific shadow for white card */

    /* New colors for Tool Cards */
    --bg-tool-card: #1A1A1A; /* Dark background for tool cards */
    --tool-icon-bg: #F8F8F8; /* Adjusted to a slightly off-white for tool icons, closer to Sawad */
    --tool-name-color: var(--text-light); /* White for tool names */
    --tool-category-color: var(--text-medium); /* Gray for categories */

    /* New color for grey headings (re-introduced) */
    --text-sub-heading-grey: #666666; /* Distinct grey color for headings */
}

/* Universal Box-Sizing for easier layout management */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-main); /* Base black background color */
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
    min-height: 100vh;
}

/* New: Repeating Image Background Container */
.site-background-image {
    position: fixed;
    inset: 0; /* Shorthand for top:0; right:0; bottom:0; left:0; */
    z-index: -2; /* Above body's background-color, but below other overlays */
    pointer-events: none;
    opacity: 0.079; /* Adjusted opacity to 7.9% */
    background-image: url('./71976 (1).jpg'); /* Your specified image, explicit current directory */
    background-repeat: repeat; /* To stack */
    background-size: 400px auto; /* A tile size that creates visible repetition (roughly 4-5 times horizontally) */
}

/* NEW: Animated Color Gradient Overlay */
.background-color-gradient {
    position: fixed;
    inset: 0;
    z-index: -2; /* Above .site-background-image, below color glows */
    pointer-events: none;
    opacity: 0.05; /* Adjusted opacity to 5% */
    background-image: linear-gradient(-45deg,#ee7752,#e73c7e,#23a6d5,#23d5ab,#9600FF,#aebaf8,#bb73e0,#c1fcd3); /* New gradient */
    background-size: 400% 400%;
    animation: gradient 15s ease infinite; /* New animation */
}

/* Keyframes for the new animated colorful gradient */
@keyframes gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}


/* Subtle Background Glowing Elements (Mimicking Sawad's subtle ambient light) */
/* These are the fixed, large, subtle color glows */
body::before, body::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    filter: blur(400px); /* FURTHER INCREASED BLUR */
    opacity: 0.03; /* FURTHER DECREASED OPACITY */
    z-index: -1; /* Above .background-color-gradient, below html::before (grid) */
    pointer-events: none;
    will-change: transform, opacity;
}

body::before {
    width: 1300px; /* Larger */
    height: 1300px; /* Larger */
    background: radial-gradient(circle at center, var(--accent-primary-sawad) 0%, transparent 60%);
    animation: glow1 25s infinite alternate ease-in-out;
}

body::after {
    width: 1200px; /* Larger */
    height: 1200px; /* Larger */
    background: radial-gradient(circle at center, var(--accent-secondary-sawad) 0%, transparent 60%);
    animation: glow2 28s infinite alternate-reverse ease-in-out;
}

@keyframes glow1 {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.03; }
    50% { transform: translate(-55%, -45%) scale(1.05); opacity: 0.05; } /* Adjusted max opacity */
    100% { transform: translate(-45%, -55%) scale(1); opacity: 0.03; }
}

@keyframes glow2 {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.03; }
    50% { transform: translate(-45%, -55%) scale(1.03); opacity: 0.05; } /* Adjusted max opacity */
    100% { transform: translate(-55%, -45%) scale(1); opacity: 0.03; }
}


/* Animated Background Grid Pattern (now only the mask, gradient moved to new div) */
html::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0; /* Above color glows, below main content */
    pointer-events: none;
    opacity: 0.008; /* EXTREMELY SUBTLE */

    /* REMOVED background-image, background-size, animation properties from here */
    
    /* TWEAKED LINE THICKNESS & SEGMENTATION */
    mask-image:
        linear-gradient(to right, transparent 99.85%, white 0.15%), /* Even thinner vertical lines */
        linear-gradient(to bottom, transparent 99.85%, white 0.15%), /* Even thinner horizontal lines */
        linear-gradient(45deg, transparent 75%, white 75.02%, white 75.18%, transparent 75.2%), /* Extremely thin diagonal grid 1 */
        linear-gradient(-45deg, transparent 75%, white 75.02%, white 75.18%, transparent 75.2%); /* Extremely thin diagonal grid 2 */

    -webkit-mask-image:
        linear-gradient(to right, transparent 99.85%, white 0.15%),
        linear-gradient(to bottom, transparent 99.85%, white 0.15%),
        linear-gradient(45deg, transparent 75%, white 75.02%, white 75.18%, transparent 75.2%),
        linear-gradient(-45deg, transparent 75%, white 75.02%, white 75.18%, transparent 75.2%);

    /* ADJUSTED MASK SIZES for even denser pattern */
    mask-size: 40px 40px, 40px 40px, 40px 40px, 40px 40px; /* Adjusted from 50px */
    -webkit-mask-size: 40px 40px, 40px 40px, 40px 40px, 40px 40px;

    mask-repeat: repeat;
    -webkit-mask-repeat: repeat;
}

/* Mouse Follower Glow Element (new implementation for mouse tracking) */
.mouse-follower-glow {
    position: fixed;
    top: 0; /* Will be dynamically set by JS */
    left: 0; /* Will be dynamically set by JS */
    width: 80px; /* Size of the glow */
    height: 80px; /* Size of the glow */
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 107, 0, 0.15) 0%, transparent 60%); /* Subtle orange glow */
    filter: blur(50px); /* Soft blur */
    z-index: 100; /* Ensure it's above all content */
    pointer-events: none; /* Crucial so it doesn't block clicks/interactions */
    /* Add a small transition for smoothness when mouse moves */
    transition: transform 0.1s ease-out; /* Smooth transition for position updates */
    will-change: transform; /* Performance hint */
}


/* Global Section Styling */
.section {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 80px 40px; /* Reduced from 200px for tighter spacing */
}

/* Reveal Animation Base */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.reveal-item.visible {
    opacity: 1;
    transform: translateY(0);
}


/* Main Layout Container */
.main-layout-container {
    display: flex;
    justify-content: center;
    max-width: 1920px;
    margin: 0 auto;
    /* REDUCED OUTER PADDING to bring content closer to screen edges */
    padding: 0 60px; /* Adjusted from 180px */
    min-height: 100vh;
    position: relative;
    z-index: 1;
    padding-top: 20px; /* Reduced from 50px */
    /* REDUCED GAP between columns (approximately one-third of 180px) */
    gap: 60px; /* Adjusted from 180px */
}

/* Left Column (Sticky) */
.left-column-sticky {
    flex-shrink: 0;
    flex-basis: 370px;
    padding-right: 0;
    box-sizing: border-box;
    position: sticky;
    top: 50px;
    align-self: flex-start;
    height: calc(100vh - 50px);
    display: flex;
    flex-direction: column;
    align-items: center; /* Ensures content inside is centered horizontally */
    text-align: center; /* Ensures text inside is centered */
    z-index: 2;
}

/* About Left Content (White Card) */
.about-left-content {
    background-color: var(--bg-profile-card);
    color: var(--text-dark-card);
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 10px 30px var(--shadow-color-card-white);
    width: 100%;
    max-width: 370px;
    height: auto;
    box-sizing: border-box;
    transition: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Profile Image Container */
.profile-image-container {
    width: calc(100% + 50px);
    max-width: 420px;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    position: relative;
    transform: translateX(0);
    background-color: var(--accent-primary-sawad);
}
.profile-image-container .profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.01);
}

/* Main Name */
.about-left-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8em;
    font-weight: 700;
    color: var(--text-dark-card);
    margin-bottom: 20px;
    line-height: 1.1;
}

/* Fire Icon with connecting dashed lines */
.fire-icon-with-line {
    position: relative;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.fire-icon {
    background-color: var(--accent-primary-sawad);
    border-radius: 50%;
    padding: 8px;
    font-size: 1.1em;
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    z-index: 2;
    position: relative;
}

.fire-icon-with-line::before,
.fire-icon-with-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    border-top: 2px dashed var(--accent-primary-sawad);
    z-index: 1;
}

.fire-icon-with-line::before {
    left: 0;
    width: calc(50% - 25px);
}

.fire-icon-with-line::after {
    right: 0;
    width: calc(50% - 25px);
}

/* Decorative background dashed lines */
.dashed-decoration {
    position: absolute;
    border: 2px dashed var(--accent-primary-sawad);
    border-radius: 50%;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 0;
}

.top-left-curve {
    width: 150px;
    height: 150px;
    top: -50px;
    left: -50px;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: rotate(-10deg);
}

.bottom-right-curve {
    width: 150px;
    height: 150px;
    bottom: -50px;
    right: -50px;
    border-left-color: transparent;
    border-top-color: transparent;
    transform: rotate(10deg);
}

/* Short Description */
.about-short-desc {
    font-size: 0.9em;
    line-height: 1.6;
    color: var(--text-medium-card);
    margin-bottom: 25px;
    padding: 0 5px;
    max-width: 90%;
}

/* Social Icons */
.about-social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 10px;
}
.about-social-icons a {
    color: var(--accent-primary-sawad);
    font-size: 1.5em;
    transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.about-social-icons a:hover {
    color: var(--accent-primary-sawad);
    transform: translateY(-2px) scale(1.05);
}


/* Right Column (Scrolling) */
.right-column-scroll {
    flex-grow: 1;
    padding-bottom: 100px;
    box-sizing: border-box;
    min-height: 150vh;
    padding-top: 50px;
    text-align: left;
    position: relative;
    z-index: 0;
}

/* Specific text alignment for elements within right-column-scroll */
.right-column-scroll h1,
.right-column-scroll h2,
.right-column-scroll p {
  margin-left: 0;
  margin-right: 0;
}

/* HERO TEXT ADJUSTMENTS */
.hero-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 8em;
    line-height: 0.75em;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: left;
    margin-left: 0;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: unset;
}
.hero-heading .crafting {
  color: #ffffff;
}

.hero-heading .digital {
  color: var(--text-sub-heading-grey); /* Applied specific sub-heading grey color */
}

/* HERO DESCRIPTION ADJUSTMENTS */
.hero-description {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 80px;
    max-width: 800px;
    color: var(--text-medium);
}


/* Services Section Styles */
.services-section {
  position: relative;
  padding: 80px 40px;
  text-align: left;
  z-index: 2;
  background-color: transparent;
  margin-top: 0;
  margin-bottom: 0;
}

/* Services Main Title */
.services-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 8em;
    line-height: 0.75em;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: left;
    margin-left: 0;
    position: relative;
    z-index: 4;
}
.services-heading .text-white { color: var(--text-light); display: block; }
.services-heading .text-gray { color: var(--text-sub-heading-grey); display: block; } /* Applied specific sub-heading grey color */


/* Services Flat Grid (2D animation) */
.services-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 25px;
    justify-items: stretch;
    margin-top: 0;
}

/* Service Item for 2D Grid (Animations) */
.service-item {
  background-color: var(--bg-tool-card); /* Changed to match tool card background */
  border-radius: 12px;
  padding: 60px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-align: left;
  will-change: transform, opacity;

  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-item.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger effect for service items in the 2D grid */
.services-items-container .service-item:nth-child(1) { transition-delay: 0.08s; }
.services-items-container .service-item:nth-child(2) { transition-delay: 0.16s; }
.services-items-container .service-item:nth-child(3) { transition-delay: 0.24s; }
.services-items-container .service-item:nth-child(4) { transition-delay: 0.32s; }
.services-items-container .service-item:nth-child(5) { transition-delay: 0.4s; }
.services-items-container .service-item:nth-child(6) { transition-delay: 0.48s; }
.services-items-container .service-item:nth-child(7) { transition-delay: 0.56s; }
.services-items-container .service-item:nth-child(8) { transition-delay: 0.64s; }


/* Service item children styling */
.service-item .service-title {
    position: relative;
    z-index: 1;
    font-size: 1.7em;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
}
.service-item .service-description {
    position: relative;
    z-index: 1;
    font-size: 0.95em;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Subtitle background numbers visibility for 2D cards */
.service-item .subtitle-number {
  position: absolute;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  font-size: 16em;
  color: rgba(255, 255, 255, 0.05); /* White with 5% opacity - lighter than grey text */
  z-index: 0;
  pointer-events: none;
}


/* Tools Section */
.tools-section {
  text-align: left;
  padding: 80px 40px;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  background: none;
}

.tools-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 7.5em;
    line-height: 0.8em;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: left;
    margin-left: 0;
}

.tools-heading .text-white {
    color: var(--text-light);
    display: block;
}

.tools-heading .text-gray { color: var(--text-sub-heading-grey); display: block; } /* Applied specific sub-heading grey color */

/* TOOLS GRID ALIGNMENT */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-left: 0;
    margin-right: 0;
    justify-items: stretch;
}

/* Tool Card (Animations) */
.tool-card {
    background-color: var(--bg-tool-card);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    will-change: transform, opacity;

    opacity: 0;
    transform: translateY(60px);
}
.tool-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tool-card:hover {
    transform: translateY(-5px);
    background-color: rgba(26, 26, 26, 0.9);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.tool-icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--tool-icon-bg);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
}

.tool-logo {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    filter: brightness(0.01);
}

.tool-info {
    flex-grow: 1;
    text-align: left;
}

.tool-name {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--tool-name-color);
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.tool-category {
    font-size: 0.85em;
    color: var(--tool-category-color);
    margin: 0;
    line-height: 1.2;
}


/* Footer (Contact Section) */
footer {
    background-color: var(--bg-main);
    color: var(--text-light);
    text-align: center;
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--accent-secondary-sawad);
    text-decoration: none;
    transition: text-decoration 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

footer a:hover {
    text-decoration: underline;
}

footer h2 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    margin-bottom: 25px;
    font-size: 3.2em;
    color: var(--primary-heading-color);
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    letter-spacing: 1.5px;
}

.contact-tagline {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.8;
    color: var(--text-light);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-button {
    background-color: rgba(255, 255, 255, 0.005); /* Very very transparent */
    border: 1px solid rgba(255, 255, 255, 0.01); /* Very very transparent border */
    border-radius: 12px;
    padding: 0;
    font-size: 1.2em;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 280px;
    height: 120px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-align: center;
}

.contact-button:hover {
    transform: translateY(-8px);
    background-color: rgba(26, 26, 26, 0.9);
    box-shadow: 0 10px 25px var(--shadow-color-dark), 0 0 15px var(--accent-secondary-sawad);
}

.contact-button .button-content-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 15px;
    box-sizing: border-box;
}

.contact-button i {
    font-size: 2.8em;
    color: var(--accent-primary-sawad);
}

.contact-button .button-value {
    font-size: 15px;
    font-weight: bold;
    opacity: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 5px;
    max-width: 90%;
    color: var(--text-light);
    margin-top: 5px;
}

.contact-button .copied-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--accent-primary-sawad); /* Solid orange, not gradient */
    color: var(--text-light);
    font-size: 1.5em;
    font-weight: bold;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    z-index: 3;
}

/* States when button is 'copied' */
.contact-button.copied .button-content-main {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
}

.contact-button.copied .copied-text {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.social-links {
    margin-top: 30px;
}
.social-links a {
    color: var(--text-light);
    margin: 0 20px;
    transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.social-links a:hover {
    color: var(--accent-secondary-sawad);
    transform: scale(1.3);
}


/* Responsive Design */
@media (max-width: 1200px) {
    .main-layout-container {
        padding: 0 40px;
        gap: 40px;
    }
    .left-column-sticky {
        width: 100%;
        padding-right: 0;
        max-width: 400px;
        margin: 0 auto;
    }
    .right-column-scroll {
        flex-grow: 1;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-top: 50px;
        text-align: center;
    }
    .section { /* General section padding */
        padding: 80px 40px; /* Consistent for medium screens */
    }

    /* Specific adjustments for profile card on 1200px screens */
    .about-left-content {
        max-width: 300px;
        padding: 25px 20px;
    }
    .profile-image-container {
        width: calc(100% + 40px);
        max-width: 340px;
        height: 160px;
        margin-bottom: 20px;
    }
    .about-left-content h3 {
        font-size: 2.5em;
    }
    .fire-icon-with-line {
        margin-bottom: 20px;
    }
    .fire-icon {
        padding: 7px;
        font-size: 1em;
    }
    .fire-icon-with-line::before,
    .fire-icon-with-line::after {
        width: calc(50% - 22px);
    }
    .about-short-desc {
        font-size: 0.85em;
        margin-bottom: 20px;
    }
    .about-social-icons a {
        font-size: 1.4em;
    }

    .dashed-decoration {
        border-width: 1.5px;
    }
    .top-left-curve, .bottom-right-curve {
        width: 120px;
        height: 120px;
        top: -40px;
        left: -40px;
        bottom: -40px;
        right: -40px;
    }

    /* Adjustments for hero content */
    .hero-heading {
        font-size: 6em;
        line-height: 0.85em;
        margin-bottom: 25px;
    }
    .hero-description {
        font-size: 1em;
        line-height: 1.7;
        margin-bottom: 80px;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    /* Adjustments for services section */
    .services-heading {
        font-size: 6em;
        line-height: 0.85em;
        margin-bottom: 50px;
    }
    .services-items-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    .service-item {
        padding: 50px;
    }
    .service-item .subtitle-number {
        font-size: 11em;
    }
    .service-item .service-title {
        font-size: 1.5em;
    }
    .service-item .service-description {
        font-size: 0.9em;
    }

    /* Adjustments for tools section */
    .tools-heading {
        font-size: 6em;
        line-height: 0.85em;
        margin-bottom: 50px;
    }
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
        max-width: 500px;
        margin: 0 auto;
    }
    .tool-card {
        padding: 18px;
        gap: 12px;
    }
    .tool-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    .tool-name {
        font-size: 1em;
    }
    .tool-category {
        font-size: 0.8em;
    }

    footer {
        padding: 80px 0; /* Reduced for medium screens */
    }
    .contact-button {
        width: 220px;
        height: 100px;
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .main-layout-container {
        flex-direction: column;
        padding: 0 20px;
        padding-top: 20px;
        gap: 0;
    }
    .left-column-sticky {
        width: 100%;
        position: relative;
        top: 0;
        min-height: unset;
        padding-bottom: 50px;
        padding-top: 0;
        flex-basis: auto;
    }
    .section {
        padding: 60px 20px; /* Reduced for small screens */
    }

    /* Specific adjustments for profile card on 768px screens */
    .about-left-content {
        max-width: 280px;
        padding: 20px 15px;
        border-radius: 15px;
    }
    .profile-image-container {
        width: calc(100% + 40px);
        max-width: 320px;
        height: 150px;
        margin-bottom: 20px;
    }
    .about-left-content h3 {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .fire-icon-with-line {
        height: 35px;
        margin-bottom: 20px;
    }
    .fire-icon {
        padding: 6px;
        font-size: 0.9em;
    }
    .fire-icon-with-line::before,
    .fire-icon-with-line::after {
        width: calc(50% - 20px);
    }
    .about-short-desc {
        font-size: 0.8em;
        margin-bottom: 15px;
        padding: 0 2px;
    }
    .about-social-icons a {
        font-size: 1.3em;
        gap: 12px;
    }
    .dashed-decoration {
        border-width: 1px;
    }
    .top-left-curve, .bottom-right-curve {
        width: 100px;
        height: 100px;
        top: -30px;
        left: -30px;
        bottom: -30px;
        right: -30px;
    }

    /* Adjustments for hero content */
    .right-column-scroll {
        width: 100%;
        padding: 40px 20px;
        min-height: auto;
        padding-top: 50px;
        text-align: center;
    }
    .hero-heading {
        font-size: 4.5em;
        line-height: 0.9em;
        margin-bottom: 20px;
    }
    .hero-description {
        font-size: 0.95em;
        line-height: 1.6;
        max-width: 100%;
        margin-bottom: 40px;
    }

    /* Adjustments for services section */
    .services-heading {
        font-size: 4.5em;
        line-height: 0.9em;
        margin-bottom: 30px;
    }
    .services-items-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .service-item {
        padding: 35px;
    }
    .service-item .subtitle-number {
        font-size: 8em;
        right: 10px;
    }
    .service-item .service-title {
        font-size: 1.2em;
    }
    .service-item .service-description {
        font-size: 0.9em;
    }

    /* Adjustments for tools section */
    .tools-heading {
        font-size: 4.5em;
        line-height: 0.9em;
        margin-bottom: 30px;
    }
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .tool-card {
        padding: 15px;
        gap: 10px;
    }
    .tool-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    .tool-name {
        font-size: 0.95em;
    }
    .tool-category {
        font-size: 0.75em;
    }

    footer {
        padding: 60px 0;
    }
    .contact-buttons {
        gap: 15px;
    }
    .contact-button {
        width: 200px;
        height: 95px;
        font-size: 1em;
    }
    .contact-button i {
        font-size: 2.2em;
    }
    .contact-button .button-value {
        font-size: 0.8em;
    }
    .contact-button .copied-text {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .main-layout-container {
        padding: 0 15px;
    }
    .section h2 { /* Global h2 within a section */
        font-size: 2.8em;
        letter-spacing: 0.5px;
        margin-bottom: 30px;
    }
    .hero-heading {
        font-size: clamp(2.8em, 9vw, 3.5em);
        line-height: 0.9em;
        margin-bottom: 15px;
    }
    .hero-description {
        font-size: 0.85em;
        line-height: 1.5;
        margin-bottom: 30px;
    }

    .services-section {
        padding: 40px 15px; /* Further reduced */
    }
    .services-heading {
        font-size: 2.8em;
        line-height: 0.9em;
        margin-bottom: 25px;
    }
    .service-item {
        padding: 30px;
    }
    .service-item .subtitle-number {
        font-size: 6em;
        right: 5px;
    }
    .service-item .service-title {
        font-size: 1.1em;
    }
    .service-item .service-description {
        font-size: 0.85em;
    }

    .tools-section {
        padding: 40px 15px; /* Further reduced */
    }
    .tools-heading {
        font-size: 2.8em;
        line-height: 0.9em;
        margin-bottom: 25px;
    }
    .tool-card {
        padding: 12px;
        gap: 8px;
    }
    .tool-icon-wrapper {
        width: 35px;
        height: 35px;
    }
    .tool-name {
        font-size: 0.85em;
    }
    .tool-category {
        font-size: 0.7em;
    }

    .contact-buttons {
        max-width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .contact-button {
        width: 90%;
        height: 70px;
        font-size: 0.9em;
    }
    .contact-button i {
        font-size: 1.8em;
    }
    .contact-button .button-value {
        font-size: 0.7em;
    }
    .contact-button .copied-text {
        font-size: 1em;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .reveal-item,
    .reveal-stagger,
    .about-heading-animation,
    .about-content-animation,
    .service-item,
    .tool-card
    {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        animation: none !important;
    }

    .about-content-wrapper .about-content-animation {
        transition-delay: 0s !important;
    }
